rcutorture: Use the gp_kthread_dbg operation specified by cur_ops
authorZqiang <qiang.zhang1211@gmail.com>
Fri, 15 Mar 2024 07:17:10 +0000 (15:17 +0800)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Tue, 16 Apr 2024 09:16:35 +0000 (11:16 +0200)
commite38bf06d509a90c9fc185129ec913beb6de3d428
treee9ef6e63646c92c7479d851c0d6c742b786f59d6
parenta10e3cbf32786cae437e4f370573318721e47c2c
rcutorture: Use the gp_kthread_dbg operation specified by cur_ops

Despite there being a cur_ops->gp_kthread_dbg(), rcu_torture_writer()
unconditionally invokes vanilla RCU's show_rcu_gp_kthreads().  This is not
at all helpful when some other flavor of RCU is being tested.  This commit
therefore makes rcu_torture_writer() invoke cur_ops->gp_kthread_dbg()
for RCU implementations providing this function.

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