]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/amso1100: Prevent deadlock in destroy QP
authorKrishna Kumar <krkumar2@in.ibm.com>
Fri, 24 Nov 2006 10:33:48 +0000 (16:03 +0530)
committerRoland Dreier <rolandd@cisco.com>
Wed, 29 Nov 2006 23:33:08 +0000 (15:33 -0800)
commit7e26e18ec24f9638355b35133c0bf10d8e7ce09d
tree9f89af31110b7ad8acce86fabb10c98005dedb75
parente70cc3e07a9f509499cc3f5add269a7e0a5e331e
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>
drivers/infiniband/hw/amso1100/c2_qp.c