]> www.infradead.org Git - users/willy/xarray.git/commit
rcu/nocb: Introduce RCU_NOCB_LOCKDEP_WARN()
authorFrederic Weisbecker <frederic@kernel.org>
Thu, 30 May 2024 13:45:42 +0000 (15:45 +0200)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Mon, 29 Jul 2024 02:04:31 +0000 (07:34 +0530)
commit7aeba709a048d870c15940af8b620b16281c3b9e
treece78bd9a178914845e76c5127d1b26445e22a942
parent8400291e289ee6b2bf9779ff1c83a291501f017b
rcu/nocb: Introduce RCU_NOCB_LOCKDEP_WARN()

Checking for races against concurrent (de-)offloading implies the
creation of !CONFIG_RCU_NOCB_CPU stubs to check if each relevant lock
is held. For now this only implies the nocb_lock but more are to be
expected.

Create instead a NOCB specific version of RCU_LOCKDEP_WARN() to avoid
the proliferation of stubs.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
include/linux/rcupdate.h
kernel/rcu/tree_nocb.h
kernel/rcu/tree_plugin.h