scsi: lpfc: Record LOGO state with discovery engine even if aborted
authorJustin Tee <justin.tee@broadcom.com>
Wed, 1 Mar 2023 23:16:20 +0000 (15:16 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 10 Mar 2023 02:21:44 +0000 (21:21 -0500)
commit06578ac65e2ae9e4288e42202f67d93bd52eef45
treed0fd5e83f91972313b194000d7535bb975ced4bb
parentc0d6071aa26f2989fada9a66b216419965f207db
scsi: lpfc: Record LOGO state with discovery engine even if aborted

A target vendor array reboot in P2P topology can sometimes result in
unsuccessful rediscovery.

Rework the lpfc_cmpl_els_logo() routine such that when the LOGO completes
as a failure because of driver abort, the LOGO state is still recorded with
the discovery state machine.

This is a small rework to set LOGO completion without forcing a device
removal state change.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20230301231626.9621-5-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c