]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rcutorture: Abstract read-lock-held checks
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 14 Mar 2021 04:05:31 +0000 (20:05 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 6 Apr 2021 23:07:13 +0000 (16:07 -0700)
commit241a45012d5df0bfad807f0b7028236f0ed2cbdb
treed4bd07f7bab5518b4c72e5b7968527089ec88479
parent85518569b14e5fc1fbc7e17919018c829ae93584
rcutorture: Abstract read-lock-held checks

This commit adds a (*readlock_held)() function pointer to the
rcu_torture_ops structure in order to make the rcu_torture_one_read()
function's rcu_dereference_check() lockdep expression more appropriate
for a given run.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcutorture.c