linux/tools/testing/selftests/rcutorture/configs/refscale
Paul E. McKenney b0c8dd5097 refscale: Ditch ref_scale_shutdown in favor of torture_shutdown_init()
The torture_shutdown_init() function spawns a shutdown kthread in
a manner very similar to that implemented by ref_scale_shutdown().
This commit therefore re-implements ref_scale_shutdown in terms of
torture_shutdown_init().

The initial draft of this patch was generated by version 2.1.16 of the
Claude AI/LLM, but trained and configured for use by my employer, and
prompted to refer to Linux-kernel source code.  This initial draft failed
to provide a forward reference to ref_scale_cleanup(), passed zero to
torture_shutdown_init() for an unwelcome insta-shutdown, and failed to
pass the kvm.sh --duration argument in as a refscale module parameter.
On the other hand, it did catch the need to NULL main_task on the
post-test self-shutdown code path, which I might well have forgotten
to do.

This version of the patch fixes those problems, and in fact very little
of the initial draft remains.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
2026-03-30 15:48:13 -04:00
..
CFcommon refscale: Allow refscale without RCU Tasks Rude/Trace 2022-04-20 16:53:19 -07:00
CFLIST refscale: Change --torture type from refperf to refscale 2020-06-29 12:00:46 -07:00
NOPREEMPT refscale: Update due to x86 not supporting none/voluntary preemption 2026-03-05 13:11:07 -08:00
PREEMPT torture: Remove RCU_FAST_NO_HZ from rcuscale and refscale scenarios 2021-11-30 17:24:46 -08:00
TINY refscale: Update due to x86 not supporting none/voluntary preemption 2026-03-05 13:11:07 -08:00
ver_functions.sh refscale: Ditch ref_scale_shutdown in favor of torture_shutdown_init() 2026-03-30 15:48:13 -04:00