summaryrefslogtreecommitdiff
path: root/kernel/rcu
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2022-08-04 18:05:46 -0700
committerPaul E. McKenney <paulmck@kernel.org>2022-08-31 05:09:21 -0700
commitb3cdd0a79c875d5e9cac9f6555485031ce5bea81 (patch)
tree6daf121d523f257df293fc8c1e7ebfedaaed0261 /kernel/rcu
parent7ecef0871dd9a879038dbe8a681ab48bd0c92988 (diff)
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>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/rcutorture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
index 8995429c6f1c..029de67a9da9 100644
--- a/kernel/rcu/rcutorture.c
+++ b/kernel/rcu/rcutorture.c
@@ -520,7 +520,7 @@ static void rcu_sync_torture_init(void)
static bool rcu_poll_need_2gp(bool poll, bool poll_full)
{
- return poll || (!IS_ENABLED(CONFIG_TINY_RCU) && poll_full && num_online_cpus() <= 1);
+ return poll;
}
static struct rcu_torture_ops rcu_ops = {