rcutorture: Allow per-RCU-flavor polled double-GP check
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 1 Aug 2022 23:57:17 +0000 (16:57 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 31 Aug 2022 12:08:07 +0000 (05:08 -0700)
commited7d2f1abee48a90fae5fdf5c60d71803a5a1d10
tree07d0a9b87b66e6525c1c8f6451ab684cd5cffbc5
parentccb42229fb34bc3e93f7aa081da3e78eac68cd27
rcutorture: Allow per-RCU-flavor polled double-GP check

Only vanilla RCU needs a double grace period for its compressed
polled grace-period old-state cookie.  This commit therefore adds an
rcu_torture_ops per-flavor function ->poll_need_2gp to allow this check
to be adapted to the RCU flavor under test.  A NULL pointer for this
function says that doubled grace periods are never needed.

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