]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Use lockdep rather than comment to enforce lock held
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 10 Oct 2019 16:05:27 +0000 (09:05 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 9 Dec 2019 20:37:50 +0000 (12:37 -0800)
commitf0485975f5cdd83d14182d0543bb26342ab6bb82
tree7e0795b0f8be3c7e9a507b2746a49ea2f5ef8819
parent21ad882f1ad7bc2d83169267a6c4569a4aff523b
rcu: Use lockdep rather than comment to enforce lock held

The rcu_preempt_check_blocked_tasks() function has a comment
that states that the rcu_node structure's ->lock must be held,
which might be informative, but which carries little weight if
not read.  This commit therefore removes this comment in favor of
raw_lockdep_assert_held_rcu_node(), which will complain quite
visibly if the required lock is not held.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_plugin.h