From: Krishna Kumar Date: Fri, 24 Nov 2006 10:33:48 +0000 (+0530) Subject: RDMA/amso1100: Prevent deadlock in destroy QP X-Git-Tag: v2.6.20-rc1~34^2~40^2~471^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9edea298e52faeb0d4ae875cb712a5d69ba1966;p=pandora-kernel.git RDMA/amso1100: Prevent deadlock in destroy QP It is possible to swap the CQs used for send_cq and recv_cq when creating two different QPs. If these two QPs are then destroyed at the same time, an AB-BA deadlock can occur because the CQ locks are taken our of order. Fix this by always taking CQ locks in a fixed order. Signed-off-by: Krishna Kumar Signed-off-by: Roland Dreier --- Reading git-diff-tree failed