rcu: Add lockdep_assert_held() teeth to tree_plugin.h
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 28 Apr 2017 20:19:28 +0000 (13:19 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 8 Jun 2017 15:25:37 +0000 (08:25 -0700)
commitea9b0c8a26a2cadfe49382d679eee88d3c4de79c
tree4646fab645e63273a1f822c7e4045402969233b5
parentc0b334c5bfa98ab104bde38da330a113a6c7dd56
rcu: Add lockdep_assert_held() teeth to tree_plugin.h

Comments can be helpful, but assertions carry more force.  This commit
therefore adds lockdep_assert_held() and RCU_LOCKDEP_WARN() calls to
enforce lock-held and interrupt-disabled preconditions.

Reported-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree_plugin.h