milos-linux/kernel/rcu
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
..
Kconfig rcu: Add noinstr-fast rcu_read_{,un}lock_tasks_trace() APIs 2026-01-01 16:39:46 +08:00
Kconfig.debug rcutorture: Add a textbook-style trivial preemptible RCU 2026-03-30 15:48:13 -04:00
Makefile rcuperf: Change rcuperf to rcuscale 2020-08-24 18:39:24 -07:00
rcu.h rcutorture: Add a textbook-style trivial preemptible RCU 2026-03-30 15:48:13 -04:00
rcu_segcblist.c rcu/nocb: Simplify (de-)offloading state machine 2024-09-09 00:03:55 +05:30
rcu_segcblist.h rcu: Remove unused declaration rcu_segcblist_offload() 2024-10-22 15:36:56 +02:00
rcuscale.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
rcutorture.c rcutorture: Add a textbook-style trivial preemptible RCU 2026-03-30 15:48:13 -04:00
refscale.c refscale: Ditch ref_scale_shutdown in favor of torture_shutdown_init() 2026-03-30 15:48:13 -04:00
srcutiny.c srcu: Use irq_work to start GP in tiny SRCU 2026-03-25 09:00:05 -07:00
srcutree.c rcu: Use an intermediate irq_work to start process_srcu() 2026-03-25 08:59:59 -07:00
sync.c rcu: Eliminate lockless accesses to rcu_sync->gp_count 2024-07-04 13:48:57 -07:00
tasks.h Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
tiny.c sched: Provide and use set_need_resched_current() 2025-11-20 22:26:09 +01:00
tree.c Merge branch 'rcu-nocb.20260123a' 2026-01-23 11:15:36 -08:00
tree.h Merge branch 'rcu-nocb.20260123a' 2026-01-23 11:15:36 -08:00
tree_exp.h rcu: Make expedited RCU CPU stall warnings detect stall-end races 2026-01-07 21:58:26 +08:00
tree_nocb.h rcu/nocb: Extract nocb_defer_wakeup_cancel() helper 2026-01-23 11:12:25 -08:00
tree_plugin.h rcu: Fix rcu_read_unlock() deadloop due to softirq 2026-01-07 21:58:37 +08:00
tree_stall.h sched: Provide and use set_need_resched_current() 2025-11-20 22:26:09 +01:00
update.c rcutorture: Add a textbook-style trivial preemptible RCU 2026-03-30 15:48:13 -04:00