]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/infiniband/hw/cxgb4/cm.c
RDMA/cxgb4: Set/reset the EP timer inside EP lock
authorSteve Wise <swise@opengridcomputing.com>
Fri, 23 Jul 2010 19:12:37 +0000 (19:12 +0000)
committerRoland Dreier <rolandd@cisco.com>
Tue, 3 Aug 2010 04:06:17 +0000 (21:06 -0700)
commitca5a22028d0845dd6bcce0dce12a7beda315baf0
tree240d5d5973dc07f0d2e3959794a446ac0ca93546
parentd4f1a5c6efabccd4b787a8b5907a5df9204ad2f6
RDMA/cxgb4: Set/reset the EP timer inside EP lock

Endpoint timer manipulation needs to be done inside the lock.  Otherwise
we can get into a situation where a timer is stopped before it is started,
which hits the WARN_ON() in stop_ep_timer().

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb4/cm.c