rcutorture: Make rcu_torture_fakewriter() use blocking wait primitives
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 17 Nov 2020 01:10:39 +0000 (17:10 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Jan 2021 01:17:18 +0000 (17:17 -0800)
commit682189a3f874db57b3e755512f2a2953f61fc54e
tree3103ea9b5c88893231e5368585fa20d4d5ec4902
parent18fbf307b7319af3725c36e16af6ae9f35a8699c
rcutorture: Make rcu_torture_fakewriter() use blocking wait primitives

Full testing of the new SRCU polling API requires that the fake
writers also use it in order to test concurrent calls to all of the API
members, especially start_poll_synchronize_srcu().  This commit makes
rcu_torture_fakewriter() use all available blocking grace-period-wait
primitives available from the RCU flavor under test.

Link: https://lore.kernel.org/rcu/20201112201547.GF3365678@moria.home.lan/
Reported-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcutorture.c