scsi: hpsa: update queue depth for externals
authorDon Brace <don.brace@microsemi.com>
Fri, 20 Oct 2017 21:51:51 +0000 (16:51 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 25 Oct 2017 08:55:20 +0000 (04:55 -0400)
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>
drivers/scsi/hpsa.c

index 6a998b09cb1bc1b9373cc6ba4cdfdc81a5285a57..27a1aca085b37e9ab7bf54613ba779b3b19fc840 100644 (file)
@@ -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,