diff options
author | Christoph Hellwig <hch@lst.de> | 2014-11-13 09:08:42 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-24 08:45:27 -0500 |
commit | db5ed4dfd5dd0142ec36ff7b335e0ec3b836b3e6 (patch) | |
tree | 6cae824b5c9e5a7fd9d213e3f9c2b1c7dc8b7b8a /drivers/scsi/3w-9xxx.c | |
parent | 1e6f2416044c062a56091ebf8d76760956dd5872 (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/scsi/3w-9xxx.c')
-rw-r--r-- | drivers/scsi/3w-9xxx.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c index 1cf37032290a..cd4129ff7ae4 100644 --- a/drivers/scsi/3w-9xxx.c +++ b/drivers/scsi/3w-9xxx.c | |||
@@ -189,17 +189,6 @@ static ssize_t twa_show_stats(struct device *dev, | |||
189 | return len; | 189 | return len; |
190 | } /* End twa_show_stats() */ | 190 | } /* End twa_show_stats() */ |
191 | 191 | ||
192 | /* This function will set a devices queue depth */ | ||
193 | static int twa_change_queue_depth(struct scsi_device *sdev, int queue_depth, | ||
194 | int reason) | ||
195 | { | ||
196 | if (reason != SCSI_QDEPTH_DEFAULT) | ||
197 | return -EOPNOTSUPP; | ||
198 | |||
199 | scsi_adjust_queue_depth(sdev, queue_depth); | ||
200 | return queue_depth; | ||
201 | } /* End twa_change_queue_depth() */ | ||
202 | |||
203 | /* Create sysfs 'stats' entry */ | 192 | /* Create sysfs 'stats' entry */ |
204 | static struct device_attribute twa_host_stats_attr = { | 193 | static struct device_attribute twa_host_stats_attr = { |
205 | .attr = { | 194 | .attr = { |
@@ -2014,7 +2003,7 @@ static struct scsi_host_template driver_template = { | |||
2014 | .queuecommand = twa_scsi_queue, | 2003 | .queuecommand = twa_scsi_queue, |
2015 | .eh_host_reset_handler = twa_scsi_eh_reset, | 2004 | .eh_host_reset_handler = twa_scsi_eh_reset, |
2016 | .bios_param = twa_scsi_biosparam, | 2005 | .bios_param = twa_scsi_biosparam, |
2017 | .change_queue_depth = twa_change_queue_depth, | 2006 | .change_queue_depth = scsi_change_queue_depth, |
2018 | .can_queue = TW_Q_LENGTH-2, | 2007 | .can_queue = TW_Q_LENGTH-2, |
2019 | .slave_configure = twa_slave_configure, | 2008 | .slave_configure = twa_slave_configure, |
2020 | .this_id = -1, | 2009 | .this_id = -1, |