]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Add lockdep_assert_held() teeth to tree.c
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 28 Apr 2017 19:32:15 +0000 (12:32 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 8 Jun 2017 15:25:37 +0000 (08:25 -0700)
commitc0b334c5bfa98ab104bde38da330a113a6c7dd56
tree49136e8c2b34f7881aa30f412d9d3615679ae472
parent0c8e0e3c37955d17cced37222a10c00ab47efd4b
rcu: Add lockdep_assert_held() teeth to tree.c

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.c