Skip to content

Commit dded1dc

Browse files
Justin Teemartinkpetersen
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 01e7471 commit dded1dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/lpfc/lpfc_hbadisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5782,7 +5782,7 @@ lpfc_setup_disc_node(struct lpfc_vport *vport, uint32_t did)
57825782
return NULL;
57835783

57845784
if (ndlp->nlp_state > NLP_STE_UNUSED_NODE &&
5785-
ndlp->nlp_state < NLP_STE_NPR_NODE) {
5785+
ndlp->nlp_state < NLP_STE_PRLI_ISSUE) {
57865786
lpfc_disc_state_machine(vport, ndlp, NULL,
57875787
NLP_EVT_DEVICE_RECOVERY);
57885788
}

0 commit comments

Comments
 (0)