diff options
author | Quinn Tran <quinn.tran@cavium.com> | 2017-12-28 21:33:39 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-01-04 05:41:07 +0100 |
commit | 6944dccbb7c9dbcd25f9e8f8308a384ff5a464e0 (patch) | |
tree | e8048d6ade204011f74a05977cbdb49495fd237e /drivers/scsi/qla2xxx/qla_isr.c | |
parent | scsi: qla2xxx: Delay loop id allocation at login (diff) | |
download | linux-6944dccbb7c9dbcd25f9e8f8308a384ff5a464e0.tar.xz linux-6944dccbb7c9dbcd25f9e8f8308a384ff5a464e0.zip |
scsi: qla2xxx: Add retry limit for fabric scan logic
Switch scan is assumed to succeed most of the time.
If the scan failed, then scan is limit 5 retries.
Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 67434b9ee7de..a37a2a474a50 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -1059,6 +1059,7 @@ global_port_update: * Mark all devices as missing so we will login again. */ atomic_set(&vha->loop_state, LOOP_UP); + vha->scan.scan_retry = 0; set_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags); set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); |