rcutorture: Enable multiple concurrent callback-flood kthreads
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 23 Nov 2021 04:55:18 +0000 (20:55 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 8 Dec 2021 00:36:18 +0000 (16:36 -0800)
commit82e310033d7c21a7a88427f14e0dad78d731a5cd
tree3f5a3826131b131ee32914a6875b096a19e9d6a2
parent12e885433dbc2e8098cfb62c68f731b18981f3f6
rcutorture: Enable multiple concurrent callback-flood kthreads

This commit converts the rcutorture.fwd_progress module parameter from
bool to int, so that it specifies the number of callback-flood kthreads.
Values less than zero specify one kthread per CPU, however, the number of
kthreads executing concurrently is limited to the number of online CPUs.
This commit also reverse the order of the need-resched and callback-flood
operations to cause the callback flooding to happen more nearly at the
same time.

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