]> asedeno.scripts.mit.edu Git - linux.git/commit
rcu: Add support for consolidated-RCU reader checking
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Tue, 16 Jul 2019 22:12:22 +0000 (18:12 -0400)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 9 Aug 2019 18:00:35 +0000 (11:00 -0700)
commit28875945ba98d1b47a8a706812b6494d165bb0a0
treea167811c3e2dfe5de312c187085ed53f21faf831
parent9147089bee3a6b504821dd8462e2be229e6dbfae
rcu: Add support for consolidated-RCU reader checking

This commit adds RCU-reader checks to list_for_each_entry_rcu() and
hlist_for_each_entry_rcu().  These checks are optional, and are indicated
by a lockdep expression passed to a new optional argument to these two
macros.  If this optional lockdep expression is omitted, these two macros
act as before, checking for an RCU read-side critical section.

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
[ paulmck: Update to eliminate return within macro and update comment. ]
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
include/linux/rculist.h
include/linux/rcupdate.h
kernel/rcu/Kconfig.debug
kernel/rcu/update.c