rcutorture: Add ability to limit callback-flood intensity
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 23 Nov 2021 19:53:52 +0000 (11:53 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 8 Dec 2021 00:36:18 +0000 (16:36 -0800)
commit613b00fbe64461f1c73e035e07c22cf3de65740b
tree637ba4f0d889f584b22511e587d2f49b61a3933f
parent82e310033d7c21a7a88427f14e0dad78d731a5cd
rcutorture: Add ability to limit callback-flood intensity

The RCU tasks flavors of RCU now need concurrent callback flooding to
test their ability to switch between single-queue mode and per-CPU queue
mode, but their lack of heavy-duty forward-progress features rules out
the use of rcutorture's current callback-flooding code.  This commit
therefore provides the ability to limit the intensity of the callback
floods using a new ->cbflood_max field in the rcu_operations structure.
When this field is zero, there is no limit, otherwise, each callback-flood
kthread allocates at most ->cbflood_max callbacks.

Cc: Neeraj Upadhyay <neeraj.iitr10@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcutorture.c