aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/qp.c
diff options
context:
space:
mode:
authorVipul Pandya <vipul@chelsio.com>2013-01-07 13:11:51 +0000
committerRoland Dreier <roland@purestorage.com>2013-02-14 15:51:55 -0800
commit91e9c07195032bbde47489b8b423053cff5f413d (patch)
tree9d19031aa034f0589caede82ae2203f5a6a233cf /drivers/infiniband/hw/cxgb4/qp.c
parentRDMA/cxgb4: Abort connections that receive unexpected streaming mode data (diff)
downloadlinux-dev-91e9c07195032bbde47489b8b423053cff5f413d.tar.xz
linux-dev-91e9c07195032bbde47489b8b423053cff5f413d.zip
RDMA/cxgb4: Abort connections when moving to ERROR state
If a FINI operation fails, then we need to ABORT instead of CLOSE. Also, if we ABORT due to unexpected STREAMING data, then wake up anybody blocked in FINI... Signed-off-by: Vipul Pandya <vipul@chelsio.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/cxgb4/qp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c
index 05bfe53bff64..17ba4f8bc12d 100644
--- a/drivers/infiniband/hw/cxgb4/qp.c
+++ b/drivers/infiniband/hw/cxgb4/qp.c
@@ -1383,6 +1383,7 @@ err:
qhp->ep = NULL;
set_state(qhp, C4IW_QP_STATE_ERROR);
free = 1;
+ abort = 1;
wake_up(&qhp->wait);
BUG_ON(!ep);
flush_qp(qhp);