Skip to content
Commit 338a8fad authored by Roland Dreier's avatar Roland Dreier
Browse files

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: default avatarRoland Dreier <rolandd@cisco.com>
parent ff149b2a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment