]> www.infradead.org Git - users/dwmw2/linux.git/commit
rcutorture: Generic test for NUM_ACTIVE_*RCU_POLL*
authorPaul E. McKenney <paulmck@kernel.org>
Sat, 15 Jun 2024 04:34:17 +0000 (21:34 -0700)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Mon, 29 Jul 2024 02:05:44 +0000 (07:35 +0530)
commit72ed29f68e6370841ba10edce5b9a213259eb9a9
treea24b79d9e124c111f82d8d2cec1d565f4de0f197
parent1bc5bb9a61378bbb2ca73ab06651d5b174876a8e
rcutorture: Generic test for NUM_ACTIVE_*RCU_POLL*

The rcutorture test suite has specific tests for both of the
NUM_ACTIVE_RCU_POLL_OLDSTATE and NUM_ACTIVE_RCU_POLL_FULL_OLDSTATE
macros provided for RCU polled grace periods.  However, with the
advent of NUM_ACTIVE_SRCU_POLL_OLDSTATE, a more generic test is needed.
This commit therefore adds ->poll_active and ->poll_active_full fields
to the rcu_torture_ops structure and converts the existing specific
tests to use these fields, when present.

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