summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r--drivers/scsi/scsi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
index 1deb6adc411f..75455d4dab68 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -621,6 +621,9 @@ int scsi_change_queue_depth(struct scsi_device *sdev, int depth)
621 wmb(); 621 wmb();
622 } 622 }
623 623
624 if (sdev->request_queue)
625 blk_set_queue_depth(sdev->request_queue, depth);
626
624 return sdev->queue_depth; 627 return sdev->queue_depth;
625} 628}
626EXPORT_SYMBOL(scsi_change_queue_depth); 629EXPORT_SYMBOL(scsi_change_queue_depth);