diff options
author | Don Brace <don.brace@microsemi.com> | 2017-03-10 21:35:17 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-03-15 18:37:10 +0100 |
commit | 87b9e6aa87d9411f1059aa245c0c79976bc557ac (patch) | |
tree | 3f60cdf9d91ad830cf75f47e5980c3bb7f68dab9 /drivers/scsi/hpsa.h | |
parent | scsi: hpsa: update check for logical volume status (diff) | |
download | linux-87b9e6aa87d9411f1059aa245c0c79976bc557ac.tar.xz linux-87b9e6aa87d9411f1059aa245c0c79976bc557ac.zip |
scsi: hpsa: limit outstanding rescans
Avoid rescan storms. No need to queue another if one is pending.
Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hpsa.h')
-rw-r--r-- | drivers/scsi/hpsa.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h index bf6cdc106654..6f04f2ad4125 100644 --- a/drivers/scsi/hpsa.h +++ b/drivers/scsi/hpsa.h @@ -201,6 +201,7 @@ struct ctlr_info { dma_addr_t errinfo_pool_dhandle; unsigned long *cmd_pool_bits; int scan_finished; + u8 scan_waiting : 1; spinlock_t scan_lock; wait_queue_head_t scan_wait_queue; |