]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Discovery state machine fixes for LOGO handling
authorJames Smart <jsmart2021@gmail.com>
Wed, 7 Jul 2021 18:43:36 +0000 (11:43 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 19 Jul 2021 02:30:35 +0000 (22:30 -0400)
commit05e8d0c6ff814ef570a110d0257a7f642fc05997
tree8bd7848d2ecb89b7455973ef0d9c197a51e4b8de
parentd10f2263ad4bab6e39ae6c2d8f04a2715a0663c5
scsi: lpfc: Discovery state machine fixes for LOGO handling

If a LOGO is received for a node that is in the NPR state, post a DEVICE_RM
event to allow clean up of the logged out node.

Clearing the NLP_NPR_2B_DISC flag upon receipt of a LOGO ACC may cause
skipping of processing outstanding PLOGIs triggered by parallel RSCN
events.  If an outstanding PLOGI is being retried and receipt of a LOGO ACC
occurs, then allow the discovery state machine's PLOGI completion to clean
up the node.

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