From: Steve Wise Date: Fri, 23 Jul 2010 19:12:27 +0000 (+0000) Subject: RDMA/cxgb4: Fix race in fini path X-Git-Tag: v2.6.36-rc1~492^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d6fcad2ac84b6fad326d87dc1dd0b29aabbd34;p=pandora-kernel.git RDMA/cxgb4: Fix race in fini path There exists a race condition where the app disconnects, which initiates an orderly close (via rdma_fini()), concurrently with an ingress abort condition, which initiates an abortive close operation. Since rdma_fini() must be called without IRQs disabled, the fini can be called after the QP has been transitioned to ERROR. This is ok, but we need to protect against qp->ep getting NULLed. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier --- Reading git-diff-tree failed