summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/srp/ib_srp.h
diff options
context:
space:
mode:
authorBart Van Assche2011-09-03 09:25:42 +0200
committerRoland Dreier2012-12-01 02:40:30 +0100
commit948d1e889e5bd6ceffcc31db2beba39331087df3 (patch)
tree0885938ace8cd28b82425ac98c0ab64e9c943792 /drivers/infiniband/ulp/srp/ib_srp.h
parentIB/srp: Simplify SCSI error handling (diff)
downloadkernel-qcow2-linux-948d1e889e5bd6ceffcc31db2beba39331087df3.tar.gz
kernel-qcow2-linux-948d1e889e5bd6ceffcc31db2beba39331087df3.tar.xz
kernel-qcow2-linux-948d1e889e5bd6ceffcc31db2beba39331087df3.zip
IB/srp: Introduce srp_handle_qp_err()
Introduce the function srp_handle_qp_err(), change the type of qp_in_error from int into bool and move the initialization of that variable from srp_reconnect_target() to srp_connect_target(). Signed-off-by: Bart Van Assche <bvanassche@acm.org> Acked-by: David Dillow <dillowda@ornl.gov> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.h')
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h
index 8b436cee46ad..02dc3acb718c 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.h
+++ b/drivers/infiniband/ulp/srp/ib_srp.h
@@ -179,7 +179,7 @@ struct srp_target_port {
struct list_head list;
struct completion done;
int status;
- int qp_in_error;
+ bool qp_in_error;
struct completion tsk_mgmt_done;
u8 tsk_mgmt_status;