scsi: lpfc: Modify when a node should be put in device recovery mode during RSCN
authorJustin Tee <justin.tee@broadcom.com>
Fri, 4 Aug 2023 19:55:46 +0000 (12:55 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Aug 2023 01:25:47 +0000 (21:25 -0400)
commitdded1dc31aa433ab4442dbe8e5a14d2a9a919bcd
tree6d80744ed4220fb6581d64d86d3c3f63ced773b4
parent01e747157b6143b62240cebcc4493f9eaad12a08
scsi: lpfc: Modify when a node should be put in device recovery mode during RSCN

Only nodes whose state is at least past a PLOGI issue and strictly less
than a PRLI issue should be put into device recovery mode upon RSCN
receipt.  Previously, the allowance of LOGO and PRLI completion states did
not make sense because those nodes should be allowed to flow through and
marked as NPort dissappeared as is normally done.  A follow up RSCN GID_FT
would recover those nodes in such cases.

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