]> git.baikalelectronics.ru Git - kernel.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)
commit2df833dd4d932dc22b7459caa599519dd44a7a55
treea167811c3e2dfe5de312c187085ed53f21faf831
parentddcedb517b2924d6210d95a84708518abe149e99
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