From: Steve Wise Date: Tue, 10 May 2011 05:06:22 +0000 (-0700) Subject: RDMA/cxgb4: Reset wait condition atomically X-Git-Tag: v3.0-rc1~409^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9594d990a528d4c444777d0f360bb50c6114825;p=pandora-kernel.git RDMA/cxgb4: Reset wait condition atomically The driver was never really waiting for RDMA_WR/FINI completions because the condition variable used to determine if the completion happened was never reset, and this condition variable is reused for both connection setup and teardown. This causes various driver crashes under heavy loads due to releasing resources too early. The fix is to use atomic bits to correctly reset the condition immediately after the completion is detected. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier --- Reading git-diff-tree failed