Skip to content

Commit da98104

Browse files
James Smartgregkh
authored andcommitted
lpfc: Fix Device discovery failures during switch reboot test.
commit 342b59caa66240b670285d519fdfe2c44289b516 upstream. When the switch is rebooted, the lpfc driver fails to log into the fabric, and Unexpected timeout message is seen. Fix: Do not issue RegVFI if the FLOGI was internally aborted. Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com> Signed-off-by: James Smart <james.smart@avagotech.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 389328e commit da98104

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/scsi/lpfc/lpfc_els.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,10 @@ lpfc_cmpl_els_flogi(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
10541054
lpfc_sli4_unreg_all_rpis(vport);
10551055
}
10561056
}
1057-
lpfc_issue_reg_vfi(vport);
1057+
1058+
/* Do not register VFI if the driver aborted FLOGI */
1059+
if (!lpfc_error_lost_link(irsp))
1060+
lpfc_issue_reg_vfi(vport);
10581061
lpfc_nlp_put(ndlp);
10591062
goto out;
10601063
}

0 commit comments

Comments
 (0)