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_def.h | |
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 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 0d20f5f8d7ab..99d2afa520c2 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -2986,6 +2986,8 @@ struct fab_scan_rp { struct fab_scan { struct fab_scan_rp *l; u32 size; + u16 scan_retry; +#define MAX_SCAN_RETRIES 5 enum scan_flags_t scan_flags; struct delayed_work scan_work; }; |