From: Don Brace Date: Fri, 20 Oct 2017 21:51:51 +0000 (-0500) Subject: scsi: hpsa: update queue depth for externals X-Git-Tag: v4.15-rc1~125^2~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c5fc3639eb4dd21f91770b16d9df8466f42f0b2;p=thirdparty%2Flinux.git scsi: hpsa: update queue depth for externals Preserve external device queue depth during a scan operation. Reviewed-by: Scott Benesh Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 6a998b09cb1bc..27a1aca085b37 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,