]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mthca: Annotate CQ locking
authorRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:36:15 +0000 (20:36 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:36:15 +0000 (20:36 -0700)
commit0518ba00c34bc5133803dd71db822c773aa0376d
treea89ced9ae4f10ee6440fb7c22c0b020e940c6ef2
parentd3ac5da8edf1175df3c52227706d5f2420754990
IB/mthca: Annotate CQ locking

mthca_ib_lock_cqs()/mthca_ib_unlock_cqs() are helper functions that
lock/unlock both CQs attached to a QP in the proper order to avoid
AB-BA deadlocks.  Annotate this so sparse can understand what's going
on (and warn us if we misuse these functions).

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c