]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rcutorture: Add a textbook-style trivial preemptible RCU
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 16 Nov 2025 03:07:41 +0000 (19:07 -0800)
committerJoel Fernandes <joelagnelf@nvidia.com>
Mon, 30 Mar 2026 19:48:13 +0000 (15:48 -0400)
commitc6f4e552e1eae4a5726230254108213b085e1ae3
treefdc2b13626bcb2968747219901970cc7084d3e3b
parent7aaa8047eafd0bd628065b15757d9b48c5f9c07d
rcutorture: Add a textbook-style trivial preemptible RCU

This commit adds a trivial textbook implementation of preemptible RCU
to rcutorture ("torture_type=trivial-preempt"), similar in spirit to the
existing "torture_type=trivial" textbook implementation of non-preemptible
RCU.  Neither trivial RCU implementation has any value for production use,
and are intended only to keep Paul honest in his introductory writings
and presentations.

[ paulmck: Apply kernel test robot feedback. ]

Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
include/linux/sched.h
kernel/rcu/Kconfig.debug
kernel/rcu/rcu.h
kernel/rcu/rcutorture.c
kernel/rcu/update.c
tools/testing/selftests/rcutorture/configs/rcu/TRIVIAL-PREEMPT [new file with mode: 0644]
tools/testing/selftests/rcutorture/configs/rcu/TRIVIAL-PREEMPT.boot [new file with mode: 0644]