summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_attr.c
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2021-04-12 03:31:16 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-04-13 07:39:13 +0200
commit4e76d4a9a226e3c7d453675f22359aba34e73ec4 (patch)
tree5bce6eb37d84e56db0f8b8249c5dac18c37307bf /drivers/scsi/lpfc/lpfc_attr.c
parentscsi: lpfc: Fix NMI crash during rmmod due to circular hbalock dependency (diff)
downloadlinux-4e76d4a9a226e3c7d453675f22359aba34e73ec4.tar.xz
linux-4e76d4a9a226e3c7d453675f22359aba34e73ec4.zip
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>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_attr.c')
0 files changed, 0 insertions, 0 deletions