IB/srp: Add change_queue_depth and change_queue_type support
authorJack Wang <jinpu.wang@profitbricks.com>
Thu, 7 Nov 2013 10:37:37 +0000 (11:37 +0100)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:43:17 +0000 (14:43 -0800)
commit71444b97816ae08a1cc435f044f9f1f4cbd51e6a
tree832d457167b77f33684fc3d2443c5c5a8b0d4da3
parent4d73f95f708ce540a85113b00f5363d0593d871d
IB/srp: Add change_queue_depth and change_queue_type support

Currently, it's not possible to change queue depth for a device behind
SRP host. Sometimes, we need to adjust queue_depth for performance
reason (eg storage busy, we need lower queue_depth to avoid running
into SCSI error handler), so this patch add support for SRP driver.

Signed-off-by: Jack Wang <jinpu.wang@profitbricks.com>
Tested-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srp/ib_srp.c