rcutorture: Make Trivial RCU ignore onoff_interval and shuffle_interval
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 16 May 2025 21:20:46 +0000 (14:20 -0700)
committerNeeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
Wed, 25 Jun 2025 03:09:01 +0000 (08:39 +0530)
commit5f2417ba05541332f334b557febc3af355317f2b
tree532b942f407609c49eca53a33c3170b1ba018047
parentf32367d96eba8fc50a0bbd2a792df3199089d13b
rcutorture: Make Trivial RCU ignore onoff_interval and shuffle_interval

Trivial RCU is a textbook implementation that is not used in the
Linux kernel, but tested to keep textbooks (and presentations) honest.
It is so trivial that it cannot deal with either CPU hotplug or external
migration from one CPU to another.  This commit therefore splats whenever
onoff_interval or shuffle_interval are non-zero, and then sets them to
zero in order to avoid false-positive failures.

Those wishing to set these module parameters in order to force failures
in Trivial RCU are free to revert this commit.  Just don't expect me to
be sympathetic to any resulting bug reports!

Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202505131651.af6e81d7-lkp@intel.com
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
kernel/rcu/rcutorture.c