diff options
author | Bart Van Assche | 2011-12-25 13:18:12 +0100 |
---|---|---|
committer | Roland Dreier | 2012-12-01 02:40:31 +0100 |
commit | 294c875a65269361defd7aeb97804ba99eb57cbf (patch) | |
tree | 64b3567dda8122a701516dfa432fee53f3b644ed /drivers/infiniband/ulp/srp/ib_srp.h | |
parent | IB/srp: Process all error completions (diff) | |
download | kernel-qcow2-linux-294c875a65269361defd7aeb97804ba99eb57cbf.tar.gz kernel-qcow2-linux-294c875a65269361defd7aeb97804ba99eb57cbf.tar.xz kernel-qcow2-linux-294c875a65269361defd7aeb97804ba99eb57cbf.zip |
IB/srp: Suppress superfluous error messages
Keep track of the connection state. Only report QP errors while
connected. Only invoke ib_send_cm_dreq() when connected so that
invoking srp_disconnect_target() after having received a DREQ does not
cause an error message to be printed.
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h index 02dc3acb718c..ef95fa4ca3ef 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.h +++ b/drivers/infiniband/ulp/srp/ib_srp.h @@ -163,6 +163,7 @@ struct srp_target_port { int path_query_id; u32 rq_tmo_jiffies; + bool connected; struct ib_cm_id *cm_id; |