]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01e196a57d16f533b99d7fb0734ad9eb25edad66
tree07d0a9b87b66e6525c1c8f6451ab684cd5cffbc5
parent5a603dd81b3e66e30255f2a11d7ed83030812736
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