• Roland Dreier's avatar
    IB/uverbs: Fix lockdep warning when QP is created with 2 CQs · 1ccf6aa1
    Roland Dreier authored
    Lockdep warns when userspace creates a QP that uses different CQs for
    send completions and receive completions, because both CQs are locked
    and their mutexes belong to the same lock class.  However, we know
    that the mutexes are distinct and the nesting is safe (there is no
    possibility of AB-BA deadlock because the mutexes are locked with
    down_read()), so annotate the situation with SINGLE_DEPTH_NESTING to
    get rid of the lockdep warning.
    Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
    1ccf6aa1
uverbs_cmd.c 53.1 KB