diff options
| author | Paul E. McKenney <paulmck@kernel.org> | 2025-08-13 20:16:29 -0700 |
|---|---|---|
| committer | Paul E. McKenney <paulmck@kernel.org> | 2025-08-14 15:26:30 -0700 |
| commit | 6e9c48b3e34b8ade2e6881c8b1f3838f5c2ab804 (patch) | |
| tree | eb5ce01f5b87a1a77fbaf33fd9cd8ecd3bfe8c7a | |
| parent | 9a316fe3adcac5655303958faef0e2cb1fedca1d (diff) | |
torture: Delay CPU-hotplug operations until boot completes
CPU-hotplug operations invoke stop-machine, which 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>
| -rw-r--r-- | kernel/torture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/torture.c b/kernel/torture.c index 5abb4b25d971..1ea9f67953a7 100644 --- a/kernel/torture.c +++ b/kernel/torture.c @@ -359,6 +359,8 @@ torture_onoff(void *arg) torture_hrtimeout_jiffies(onoff_holdoff, &rand); VERBOSE_TOROUT_STRING("torture_onoff end holdoff"); } + while (!rcu_inkernel_boot_has_ended()) + schedule_timeout_interruptible(HZ / 10); while (!torture_must_stop()) { if (disable_onoff_at_boot && !rcu_inkernel_boot_has_ended()) { torture_hrtimeout_jiffies(HZ / 10, &rand); |
