Skip to content

Commit b3cdd0a

Browse files
committed
rcutorture: Adjust rcu_poll_need_2gp() for rcu_gp_oldstate field removal
Now that rcu_gp_oldstate can accurately track both normal and expedited grace periods regardless of system state, rcutorture's rcu_poll_need_2gp() function need only call for a second grace period for the old single-unsigned-long grace-period polling APIs This commit therefore adjusts rcu_poll_need_2gp() accordingly. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 7ecef08 commit b3cdd0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/rcu/rcutorture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ static void rcu_sync_torture_init(void)
520520

521521
static bool rcu_poll_need_2gp(bool poll, bool poll_full)
522522
{
523-
return poll || (!IS_ENABLED(CONFIG_TINY_RCU) && poll_full && num_online_cpus() <= 1);
523+
return poll;
524524
}
525525

526526
static struct rcu_torture_ops rcu_ops = {

0 commit comments

Comments
 (0)