aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
diff options
context:
space:
mode:
authorVipul Pandya <vipul@chelsio.com>2013-01-07 13:11:56 +0000
committerRoland Dreier <roland@purestorage.com>2013-02-14 15:51:57 -0800
commit1ec779cc29238e6f4d315bff53cd36165819bfd5 (patch)
treeee580b96f17f19ae0f1badc761cc5ef5ee2347d6 /drivers/infiniband/hw/cxgb4/iw_cxgb4.h
parentRDMA/cxgb4: Only log rx_data warnings if cpl status is non-zero (diff)
downloadlinux-dev-1ec779cc29238e6f4d315bff53cd36165819bfd5.tar.xz
linux-dev-1ec779cc29238e6f4d315bff53cd36165819bfd5.zip
RDMA/cxgb4: Fix endpoint timeout race condition
The endpoint timeout logic had a race that could cause an endpoint object to be freed while it was still on the timedout list. This can happen if the timer is stopped after it had fired, but before the timedout thread processed the endpoint timeout. Signed-off-by: Vipul Pandya <vipul@chelsio.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/iw_cxgb4.h')
-rw-r--r--drivers/infiniband/hw/cxgb4/iw_cxgb4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
index 0aaaa0e81f29..94a3b3c47a8a 100644
--- a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
+++ b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
@@ -716,6 +716,7 @@ enum c4iw_ep_flags {
ABORT_REQ_IN_PROGRESS = 1,
RELEASE_RESOURCES = 2,
CLOSE_SENT = 3,
+ TIMEOUT = 4,
QP_REFERENCED = 5,
};