OSDN Git Service

scsi: lpfc: Fix attempted FA-PWWN usage after feature disable
authorJames Smart <jsmart2021@gmail.com>
Fri, 1 Jul 2022 21:14:19 +0000 (14:14 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jul 2022 21:21:43 +0000 (17:21 -0400)
commit43e19a96a7895f5588ffc6bf9768f362ae3af70e
tree1c8854c9d8df0f1f11ab808c9e0f5284b03fec22
parent2f67dc7970bce3529edce93a0a14234d88b3fcd5
scsi: lpfc: Fix attempted FA-PWWN usage after feature disable

Disabling FA-PWWN should be effective after port reset, but in some cases
it was found to be impossible to clear FA-PWWN usage without a driver
reload.

Clean up FA-PWWN flag management to make enable and disable of the feature
more robust.

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