diff options
author | Bart Van Assche <bvanassche@acm.org> | 2011-12-25 16:18:12 +0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-12-01 05:40:31 +0400 |
commit | 294c875a65269361defd7aeb97804ba99eb57cbf (patch) | |
tree | 64b3567dda8122a701516dfa432fee53f3b644ed /drivers/infiniband/ulp/srp/ib_srp.h | |
parent | 4f0af69799b0e7b9805c4d174169f5ed7bf315c1 (diff) | |
download | linux-294c875a65269361defd7aeb97804ba99eb57cbf.tar.xz |
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; |