Go to file
James Smart d6d45f67a1 scsi: lpfc: Fix call trace observed during I/O with CMF enabled
The following was seen with CMF enabled:

BUG: using smp_processor_id() in preemptible
code: systemd-udevd/31711
kernel: caller is lpfc_update_cmf_cmd+0x214/0x420  [lpfc]
kernel: CPU: 12 PID: 31711 Comm: systemd-udevd
kernel: Call Trace:
kernel: <TASK>
kernel: dump_stack_lvl+0x44/0x57
kernel: check_preemption_disabled+0xbf/0xe0
kernel: lpfc_update_cmf_cmd+0x214/0x420 [lpfc]
kernel: lpfc_nvme_fcp_io_submit+0x23b4/0x4df0 [lpfc]

this_cpu_ptr() calls smp_processor_id() in a preemptible context.

Fix by using per_cpu_ptr() with raw_smp_processor_id() instead.

Link: https://lore.kernel.org/r/20220412222008.126521-16-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-04-18 22:48:46 -04:00
Documentation Updates to Tracing: 2022-04-03 12:26:01 -07:00
LICENSES
arch A set of x86 fixes and updates: 2022-04-03 12:15:47 -07:00
block
certs
crypto
drivers scsi: lpfc: Fix call trace observed during I/O with CMF enabled 2022-04-18 22:48:46 -04:00
fs Updates to Tracing: 2022-04-03 12:26:01 -07:00
include scsi: iscsi: Fix NOP handling during conn recovery 2022-04-11 22:09:35 -04:00
init
ipc
kernel Updates to Tracing: 2022-04-03 12:26:01 -07:00
lib
mm
net
samples
scripts modpost: restore the warning message for missing symbol versions 2022-04-03 03:11:51 +09:00
security
sound
tools A set of x86 fixes and updates: 2022-04-03 12:15:47 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS scsi: iscsi: MAINTAINERS: Add Mike Christie as co-maintainer 2022-04-11 22:09:35 -04:00
Makefile Linux 5.18-rc1 2022-04-03 14:08:21 -07:00
README

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.