]> git.baikalelectronics.ru Git - kernel.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)
commit94dc4dbd7eacda4c51c2c44700f61cd67d3e3c9a
tree754e213bc201cd338dd6bffa6877872b1e0dcc93
parent1c7ecb604ec181f3ccf9e8de9571a0305671f870
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