aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
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/infiniband
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/infiniband')
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.c2
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.c7
2 files changed, 3 insertions, 6 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c
index 812a2891de58..20ca6a619476 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.c
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
@@ -911,7 +911,7 @@ static struct scsi_host_template iscsi_iser_sht = {
911 .module = THIS_MODULE, 911 .module = THIS_MODULE,
912 .name = "iSCSI Initiator over iSER", 912 .name = "iSCSI Initiator over iSER",
913 .queuecommand = iscsi_queuecommand, 913 .queuecommand = iscsi_queuecommand,
914 .change_queue_depth = iscsi_change_queue_depth, 914 .change_queue_depth = scsi_change_queue_depth,
915 .sg_tablesize = ISCSI_ISER_SG_TABLESIZE, 915 .sg_tablesize = ISCSI_ISER_SG_TABLESIZE,
916 .max_sectors = 1024, 916 .max_sectors = 1024,
917 .cmd_per_lun = ISER_DEF_CMD_PER_LUN, 917 .cmd_per_lun = ISER_DEF_CMD_PER_LUN,
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index 8d13a19e04b2..5461924c9f10 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -2402,18 +2402,15 @@ static int srp_cm_handler(struct ib_cm_id *cm_id, struct ib_cm_event *event)
2402 * srp_change_queue_depth - setting device queue depth 2402 * srp_change_queue_depth - setting device queue depth
2403 * @sdev: scsi device struct 2403 * @sdev: scsi device struct
2404 * @qdepth: requested queue depth 2404 * @qdepth: requested queue depth
2405 * @reason: SCSI_QDEPTH_DEFAULT
2406 * (see include/scsi/scsi_host.h for definition)
2407 * 2405 *
2408 * Returns queue depth. 2406 * Returns queue depth.
2409 */ 2407 */
2410static int 2408static int
2411srp_change_queue_depth(struct scsi_device *sdev, int qdepth, int reason) 2409srp_change_queue_depth(struct scsi_device *sdev, int qdepth)
2412{ 2410{
2413 if (!sdev->tagged_supported) 2411 if (!sdev->tagged_supported)
2414 qdepth = 1; 2412 qdepth = 1;
2415 scsi_adjust_queue_depth(sdev, qdepth); 2413 return scsi_change_queue_depth(sdev, qdepth);
2416 return sdev->queue_depth;
2417} 2414}
2418 2415
2419static int srp_send_tsk_mgmt(struct srp_rdma_ch *ch, u64 req_tag, 2416static int srp_send_tsk_mgmt(struct srp_rdma_ch *ch, u64 req_tag,