scsi: lpfc: Fix PLOGI ACC to be transmit after REG_LOGIN
authorJames Smart <jsmart2021@gmail.com>
Mon, 1 Mar 2021 17:18:12 +0000 (09:18 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Mar 2021 22:37:05 +0000 (17:37 -0500)
commit143753059b8b957f1cf4355338a3e3a32f3a85bf
tree8cc2f9ce5de71ac4ee749e74926ef569eb9b053e
parent9dd83f75fc8c2403508d4dbe4b9ebde15ee0bbab
scsi: lpfc: Fix PLOGI ACC to be transmit after REG_LOGIN

The driver is seeing a scenario where PLOGI response was issued and traffic
is arriving while the adapter is still setting up the login context. This
is resulting in errors handling the traffic.

Change the driver so that PLOGI response is sent after the login context
has been setup to avoid the situation.

Link: https://lore.kernel.org/r/20210301171821.3427-14-jsmart2021@gmail.com
Co-developed-by: Dick Kennedy <dick.kennedy@broadcom.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>
drivers/scsi/lpfc/lpfc_nportdisc.c