aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-11-13 09:08:42 -0500
committerChristoph Hellwig <hch@lst.de>2014-11-24 08:45:27 -0500
commitdb5ed4dfd5dd0142ec36ff7b335e0ec3b836b3e6 (patch)
tree6cae824b5c9e5a7fd9d213e3f9c2b1c7dc8b7b8a /drivers/target
parent1e6f2416044c062a56091ebf8d76760956dd5872 (diff)
scsi: drop reason argument from ->change_queue_depth
Drop the now unused reason argument from the ->change_queue_depth method. Also add a return value to scsi_adjust_queue_depth, and rename it to scsi_change_queue_depth now that it can be used as the default ->change_queue_depth implementation. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/loopback/tcm_loop.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c
index 670b75a62243..4d1b7224a7f2 100644
--- a/drivers/target/loopback/tcm_loop.c
+++ b/drivers/target/loopback/tcm_loop.c
@@ -110,19 +110,6 @@ static struct device_driver tcm_loop_driverfs = {
110 */ 110 */
111struct device *tcm_loop_primary; 111struct device *tcm_loop_primary;
112 112
113/*
114 * Copied from drivers/scsi/libfc/fc_fcp.c:fc_change_queue_depth() and
115 * drivers/scsi/libiscsi.c:iscsi_change_queue_depth()
116 */
117static int tcm_loop_change_queue_depth(
118 struct scsi_device *sdev,
119 int depth,
120 int reason)
121{
122 scsi_adjust_queue_depth(sdev, depth);
123 return sdev->queue_depth;
124}
125
126static void tcm_loop_submission_work(struct work_struct *work) 113static void tcm_loop_submission_work(struct work_struct *work)
127{ 114{
128 struct tcm_loop_cmd *tl_cmd = 115 struct tcm_loop_cmd *tl_cmd =
@@ -397,7 +384,7 @@ static struct scsi_host_template tcm_loop_driver_template = {
397 .proc_name = "tcm_loopback", 384 .proc_name = "tcm_loopback",
398 .name = "TCM_Loopback", 385 .name = "TCM_Loopback",
399 .queuecommand = tcm_loop_queuecommand, 386 .queuecommand = tcm_loop_queuecommand,
400 .change_queue_depth = tcm_loop_change_queue_depth, 387 .change_queue_depth = scsi_change_queue_depth,
401 .change_queue_type = scsi_change_queue_type, 388 .change_queue_type = scsi_change_queue_type,
402 .eh_abort_handler = tcm_loop_abort_task, 389 .eh_abort_handler = tcm_loop_abort_task,
403 .eh_device_reset_handler = tcm_loop_device_reset, 390 .eh_device_reset_handler = tcm_loop_device_reset,