OSDN Git Service

scsi: lpfc: Transition to NPR state upon LOGO cmpl if link down or aborted
authorJames Smart <jsmart2021@gmail.com>
Tue, 12 Apr 2022 22:19:53 +0000 (15:19 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Apr 2022 02:48:45 +0000 (22:48 -0400)
commit76395c88d0afb82c9bec87e99e282c4ff11ea5f4
tree37836d3812908c7049167233746449dac8bf4b56
parent31e887864eb2c0cce3d0c448a7b1ef9792e850b7
scsi: lpfc: Transition to NPR state upon LOGO cmpl if link down or aborted

In P2P topology, a target controller reboot sometimes results in not
reestablishing a login because the ndlp is stuck in LOGO state.

Fix by transitioning to NPR state if we get link down before LOGO
completes.

Link: https://lore.kernel.org/r/20220412222008.126521-12-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>
drivers/scsi/lpfc/lpfc_els.c