]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
IB/uverbs: Fix lockdep warning when QP is created with 2 CQs
authorRoland Dreier <rolandd@cisco.com>
Fri, 22 Sep 2006 22:17:20 +0000 (15:17 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 22 Sep 2006 22:17:20 +0000 (15:17 -0700)
commit1ccf6aa19aabc11587d6d7818a5729adfed0e3de
tree754e213bc201cd338dd6bffa6877872b1e0dcc93
parentab10867621a96230757eb4a2a19d560b85f62ce9
IB/uverbs: Fix lockdep warning when QP is created with 2 CQs

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: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/uverbs_cmd.c