[PATCH] refscale: keep automatic shutdown disabled for modular tests
From: Pengpeng Hou
Date: Thu Dec 03 2026 - 21:22:43 EST
A modular refscale test used to default to leaving the machine running.
The conversion to shutdown_secs tests CONFIG_REPRO_TEST, which does not
exist. The default is therefore 300 seconds even for a module, and the
normal completion path can power off the machine.
Use CONFIG_RCU_REF_SCALE_TEST to restore the module default of zero.
Keep the built-in default and explicit shutdown_secs overrides
unchanged.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: b0c8dd5097aa ("refscale: Ditch ref_scale_shutdown in favor of torture_shutdown_init()")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
The original patch was prepared with Gemini. Codex assisted with this
review and revision (Assisted-by: gpt 5).
Built refscale.o on x86-64 with GCC 11.4 and W=1
(CONFIG_RCU_REF_SCALE_TEST=m). No runtime or hardware test was
performed.
kernel/rcu/refscale.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/rcu/refscale.c b/kernel/rcu/refscale.c
index 4f3460700e34b159228b06a742ba6ef48940d007..0045d3367277bff7104ae5ad09e74b99511d904f 100644
--- a/kernel/rcu/refscale.c
+++ b/kernel/rcu/refscale.c
@@ -93,7 +93,7 @@ torture_param(int, nruns, 30, "Number of experiments to run.");
// Reader delay in nanoseconds, 0 for no delay.
torture_param(int, readdelay, 0, "Read-side delay in nanoseconds.");
// Maximum shutdown delay in seconds, or zero for no shutdown.
-torture_param(int, shutdown_secs, !IS_MODULE(CONFIG_REPRO_TEST) * 300,
+torture_param(int, shutdown_secs, !IS_MODULE(CONFIG_RCU_REF_SCALE_TEST) * 300,
"Shutdown at end of scalability tests or at specified timeout (s).");
struct reader_task {
base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106