diff options
author | Don Brace <don.brace@microsemi.com> | 2017-10-20 23:51:51 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-25 10:55:20 +0200 |
commit | 2c5fc3639eb4dd21f91770b16d9df8466f42f0b2 (patch) | |
tree | cae7611ab44006d30eaa9b3b6d0fd6599d634c73 /drivers/scsi/hpsa.c | |
parent | scsi: hpsa: correct smart path enabled (diff) | |
download | linux-2c5fc3639eb4dd21f91770b16d9df8466f42f0b2.tar.xz linux-2c5fc3639eb4dd21f91770b16d9df8466f42f0b2.zip |
scsi: hpsa: update queue depth for externals
Preserve external device queue depth during a scan operation.
Reviewed-by: Scott Benesh <scott.benesh@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.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.c')
-rw-r--r-- | drivers/scsi/hpsa.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 6a998b09cb1b..27a1aca085b3 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1765,8 +1765,12 @@ static void hpsa_figure_phys_disk_ptrs(struct ctlr_info *h, * way too high for partial stripe writes */ logical_drive->queue_depth = qdepth; - else - logical_drive->queue_depth = h->nr_cmds; + else { + if (logical_drive->external) + logical_drive->queue_depth = EXTERNAL_QD; + else + logical_drive->queue_depth = h->nr_cmds; + } } static void hpsa_update_log_drive_phys_drive_ptrs(struct ctlr_info *h, |