]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Annotate CQ locking
authorRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:24:49 +0000 (20:24 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:24:49 +0000 (20:24 -0700)
commit2f71ca7f38f5647d2a3d12d8dae39b604e5d3e94
tree5033fb5dbf31c967af592a41da04065ed2493ddd
parented2519ae86ab5c2d2041255ab15dfc7eb3d6ef23
IB/mlx4: Annotate CQ locking

mlx4_ib_lock_cqs()/mlx4_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/mlx4/qp.c