linux/drivers/scsi/lpfc
James Smart 4e76d4a9a2 scsi: lpfc: Fix lack of device removal on port swaps with PRLIs
During target port-swap testing with link flips, the initiator could
encounter PRLI errors.  If the target node disappears permanently, the ndlp
is found stuck in UNUSED state with ref count of 1. The rmmod of the driver
will hang waiting for this node to be freed.

While handling a link error in PRLI completion path, the code intends to
skip triggering the discovery state machine. However this is causing the
final reference release path to be skipped. This causes the node to be
stuck with ref count of 1

Fix by ensuring the code path triggers the device removal event on the node
state machine.

Link: https://lore.kernel.org/r/20210412013127.2387-6-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>
2021-04-13 01:39:13 -04:00
..
lpfc_attr.c scsi: lpfc: Fix gcc -Wstringop-overread warning 2021-04-01 22:58:34 -04:00
lpfc_attr.h
lpfc_bsg.c scsi: lpfc: Fix a few incorrectly named functions 2021-03-15 22:28:58 -04:00
lpfc_bsg.h
lpfc_compat.h
lpfc_crtn.h scsi: lpfc: Fix rmmod crash due to bad ring pointers to abort_iotag 2021-04-13 01:39:13 -04:00
lpfc_ct.c scsi: lpfc: Fix formatting and misspelling issues 2021-03-15 22:14:53 -04:00
lpfc_debugfs.c Merge branch '5.12/scsi-fixes' into 5.13/scsi-staging 2021-04-05 22:57:29 -04:00
lpfc_debugfs.h
lpfc_disc.h scsi: lpfc: Update copyrights for 12.8.0.7 and 12.8.0.8 changes 2021-03-04 17:37:06 -05:00
lpfc_els.c scsi: lpfc: Fix lack of device removal on port swaps with PRLIs 2021-04-13 01:39:13 -04:00
lpfc_hbadisc.c scsi: lpfc: Fix rmmod crash due to bad ring pointers to abort_iotag 2021-04-13 01:39:13 -04:00
lpfc_hw4.h
lpfc_hw.h
lpfc_ids.h
lpfc_init.c scsi: lpfc: Fix NMI crash during rmmod due to circular hbalock dependency 2021-04-13 01:39:13 -04:00
lpfc_logmsg.h
lpfc_mbox.c
lpfc_mem.c
lpfc_nl.h
lpfc_nportdisc.c scsi: lpfc: Fix crash when a REG_RPI mailbox fails triggering a LOGO response 2021-04-13 01:39:13 -04:00
lpfc_nvme.c scsi: lpfc: Fix kernel-doc formatting issue 2021-03-15 22:28:58 -04:00
lpfc_nvme.h
lpfc_nvmet.c scsi: lpfc: Fix NMI crash during rmmod due to circular hbalock dependency 2021-04-13 01:39:13 -04:00
lpfc_scsi.c scsi: lpfc: Fix a bunch of kernel-doc misdemeanours 2021-03-15 22:28:56 -04:00
lpfc_scsi.h
lpfc_sli4.h
lpfc_sli.c scsi: lpfc: Fix crash when a REG_RPI mailbox fails triggering a LOGO response 2021-04-13 01:39:13 -04:00
lpfc_sli.h
lpfc_version.h scsi: lpfc: Update copyrights for 12.8.0.7 and 12.8.0.8 changes 2021-03-04 17:37:06 -05:00
lpfc_vport.c scsi: lpfc: Update copyrights for 12.8.0.7 and 12.8.0.8 changes 2021-03-04 17:37:06 -05:00
lpfc_vport.h
lpfc.h scsi: lpfc: Update copyrights for 12.8.0.7 and 12.8.0.8 changes 2021-03-04 17:37:06 -05:00
Makefile