scsi: libfc: rport state move to PLOGI if all PRLI retry exhausted
authorJaved Hasan <jhasan@marvell.com>
Fri, 27 Mar 2020 06:02:08 +0000 (23:02 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 29 Mar 2020 22:10:59 +0000 (18:10 -0400)
After all PRLI retries are exhausted, move rport state machine back to
PLOGI state.

Link: https://lore.kernel.org/r/20200327060208.17104-3-skashyap@marvell.com
Signed-off-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_rport.c

index 6bb8917b99a19b7016b4336f8bb6854341988e42..773c45af9387096dcfbd6a1878d9ba8d88b7bf40 100644 (file)
@@ -632,6 +632,8 @@ static void fc_rport_error(struct fc_rport_priv *rdata, int err)
                fc_rport_enter_ready(rdata);
                break;
        case RPORT_ST_PRLI:
+               fc_rport_enter_plogi(rdata);
+               break;
        case RPORT_ST_ADISC:
                fc_rport_enter_logo(rdata);
                break;