diff options
| author | James Smart <jsmart2021@gmail.com> | 2019-11-04 16:57:00 -0800 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-11-06 00:04:03 -0500 |
| commit | 6c1e803eac846f886cd35131e6516fc51a8414b9 (patch) | |
| tree | 50060f8409764300c79fa2db0a75c567bd961933 /tools/perf/scripts/python | |
| parent | scsi: lpfc: Fix configuration of BB credit recovery in service parameters (diff) | |
| download | linux-6c1e803eac846f886cd35131e6516fc51a8414b9.tar.gz linux-6c1e803eac846f886cd35131e6516fc51a8414b9.zip | |
scsi: lpfc: Fix kernel crash at lpfc_nvme_info_show during remote port bounce
When reading sysfs nvme_info file while a remote port leaves and comes
back, a NULL pointer is encountered. The issue is due to ndlp list
corruption as the the nvme_info_show does not use the same lock as the rest
of the code.
Correct by removing the rcu_xxx_lock calls and replace by the host_lock and
phba->hbaLock spinlocks that are used by the rest of the driver. Given
we're called from sysfs, we are safe to use _irq rather than _irqsave.
Link: https://lore.kernel.org/r/20191105005708.7399-4-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
