Skip to content

Commit 51c285b

Browse files
committed
rcutorture: Delay forward-progress testing until boot completes
Forward-progress testing can hog CPUs, which is not a great thing to do before boot has completed. This commit therefore makes the CPU-hotplug operations hold off until boot has completed. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 6e9c48b commit 51c285b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kernel/rcu/rcutorture.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3457,6 +3457,8 @@ static int rcu_torture_fwd_prog(void *args)
34573457
int tested_tries = 0;
34583458

34593459
VERBOSE_TOROUT_STRING("rcu_torture_fwd_progress task started");
3460+
while (!rcu_inkernel_boot_has_ended())
3461+
schedule_timeout_interruptible(HZ / 10);
34603462
rcu_bind_current_to_nocb();
34613463
if (!IS_ENABLED(CONFIG_SMP) || !IS_ENABLED(CONFIG_RCU_BOOST))
34623464
set_user_nice(current, MAX_NICE);

0 commit comments

Comments
 (0)