aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpt2sas_scsih.c
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/scsi/mpt2sas/mpt2sas_scsih.c
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/scsi/mpt2sas/mpt2sas_scsih.c')
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_scsih.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
index b006e1e9fcb8..12229de433bf 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
@@ -1222,20 +1222,18 @@ _scsih_adjust_queue_depth(struct scsi_device *sdev, int qdepth)
1222 max_depth = 1; 1222 max_depth = 1;
1223 if (qdepth > max_depth) 1223 if (qdepth > max_depth)
1224 qdepth = max_depth; 1224 qdepth = max_depth;
1225 scsi_adjust_queue_depth(sdev, qdepth); 1225 scsi_change_queue_depth(sdev, qdepth);
1226} 1226}
1227 1227
1228/** 1228/**
1229 * _scsih_change_queue_depth - setting device queue depth 1229 * _scsih_change_queue_depth - setting device queue depth
1230 * @sdev: scsi device struct 1230 * @sdev: scsi device struct
1231 * @qdepth: requested queue depth 1231 * @qdepth: requested queue depth
1232 * @reason: SCSI_QDEPTH_DEFAULT
1233 * (see include/scsi/scsi_host.h for definition)
1234 * 1232 *
1235 * Returns queue depth. 1233 * Returns queue depth.
1236 */ 1234 */
1237static int 1235static int
1238_scsih_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason) 1236_scsih_change_queue_depth(struct scsi_device *sdev, int qdepth)
1239{ 1237{
1240 _scsih_adjust_queue_depth(sdev, qdepth); 1238 _scsih_adjust_queue_depth(sdev, qdepth);
1241 1239
@@ -2077,7 +2075,7 @@ _scsih_slave_configure(struct scsi_device *sdev)
2077 r_level, raid_device->handle, 2075 r_level, raid_device->handle,
2078 (unsigned long long)raid_device->wwid, 2076 (unsigned long long)raid_device->wwid,
2079 raid_device->num_pds, ds); 2077 raid_device->num_pds, ds);
2080 _scsih_change_queue_depth(sdev, qdepth, SCSI_QDEPTH_DEFAULT); 2078 _scsih_change_queue_depth(sdev, qdepth);
2081 /* raid transport support */ 2079 /* raid transport support */
2082 if (!ioc->is_warpdrive) 2080 if (!ioc->is_warpdrive)
2083 _scsih_set_level(sdev, raid_device->volume_type); 2081 _scsih_set_level(sdev, raid_device->volume_type);
@@ -2142,7 +2140,7 @@ _scsih_slave_configure(struct scsi_device *sdev)
2142 _scsih_display_sata_capabilities(ioc, handle, sdev); 2140 _scsih_display_sata_capabilities(ioc, handle, sdev);
2143 2141
2144 2142
2145 _scsih_change_queue_depth(sdev, qdepth, SCSI_QDEPTH_DEFAULT); 2143 _scsih_change_queue_depth(sdev, qdepth);
2146 2144
2147 if (ssp_target) { 2145 if (ssp_target) {
2148 sas_read_port_mode_page(sdev); 2146 sas_read_port_mode_page(sdev);