diff options
author | Krishna Kumar <krkumar2@in.ibm.com> | 2006-11-24 11:33:48 +0100 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-30 00:33:08 +0100 |
commit | c9edea298e52faeb0d4ae875cb712a5d69ba1966 (patch) | |
tree | 9f89af31110b7ad8acce86fabb10c98005dedb75 /lib/locking-selftest-wlock.h | |
parent | IB/mthca: Fix initial SRQ logsize for mem-free HCAs (diff) | |
download | linux-c9edea298e52faeb0d4ae875cb712a5d69ba1966.tar.xz linux-c9edea298e52faeb0d4ae875cb712a5d69ba1966.zip |
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 <krkumar2@in.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'lib/locking-selftest-wlock.h')
0 files changed, 0 insertions, 0 deletions