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-xxxx.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-xxxx.c')
-rw-r--r-- | drivers/scsi/3w-xxxx.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index 261a4c1da962..c75f2048319f 100644 --- a/drivers/scsi/3w-xxxx.c +++ b/drivers/scsi/3w-xxxx.c | |||
@@ -523,17 +523,6 @@ static ssize_t tw_show_stats(struct device *dev, struct device_attribute *attr, | |||
523 | return len; | 523 | return len; |
524 | } /* End tw_show_stats() */ | 524 | } /* End tw_show_stats() */ |
525 | 525 | ||
526 | /* This function will set a devices queue depth */ | ||
527 | static int tw_change_queue_depth(struct scsi_device *sdev, int queue_depth, | ||
528 | int reason) | ||
529 | { | ||
530 | if (reason != SCSI_QDEPTH_DEFAULT) | ||
531 | return -EOPNOTSUPP; | ||
532 | |||
533 | scsi_adjust_queue_depth(sdev, queue_depth); | ||
534 | return queue_depth; | ||
535 | } /* End tw_change_queue_depth() */ | ||
536 | |||
537 | /* Create sysfs 'stats' entry */ | 526 | /* Create sysfs 'stats' entry */ |
538 | static struct device_attribute tw_host_stats_attr = { | 527 | static struct device_attribute tw_host_stats_attr = { |
539 | .attr = { | 528 | .attr = { |
@@ -2268,7 +2257,7 @@ static struct scsi_host_template driver_template = { | |||
2268 | .queuecommand = tw_scsi_queue, | 2257 | .queuecommand = tw_scsi_queue, |
2269 | .eh_host_reset_handler = tw_scsi_eh_reset, | 2258 | .eh_host_reset_handler = tw_scsi_eh_reset, |
2270 | .bios_param = tw_scsi_biosparam, | 2259 | .bios_param = tw_scsi_biosparam, |
2271 | .change_queue_depth = tw_change_queue_depth, | 2260 | .change_queue_depth = scsi_change_queue_depth, |
2272 | .can_queue = TW_Q_LENGTH-2, | 2261 | .can_queue = TW_Q_LENGTH-2, |
2273 | .slave_configure = tw_slave_configure, | 2262 | .slave_configure = tw_slave_configure, |
2274 | .this_id = -1, | 2263 | .this_id = -1, |