rcutorture: Use rcu_gp_slow_register/unregister() only for rcutype test
authorZqiang <qiang.zhang1211@gmail.com>
Fri, 29 Mar 2024 04:52:45 +0000 (12:52 +0800)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Tue, 16 Apr 2024 09:16:36 +0000 (11:16 +0200)
commit1c67318b3d72e63c51646cf26aa4425ed6f34bc5
tree7c67e3ea041c0716ad9259c9b3714dbd7a96194a
parent39988fdc126b5148f102fc2afbc9fd92d8249f53
rcutorture: Use rcu_gp_slow_register/unregister() only for rcutype test

The rcu_gp_slow_register/unregister() is only useful in tests where
torture_type=rcu, so this commit therefore generates ->gp_slow_register()
and ->gp_slow_unregister() function pointers in the rcu_torture_ops
structure, and slows grace periods only when these function pointers
exist.

Signed-off-by: Zqiang <qiang.zhang1211@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
kernel/rcu/rcutorture.c