Skip to content

Commit e38bf06

Browse files
Zqiangurezki
authored andcommitted
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>
1 parent a10e3cb commit e38bf06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/rcu/rcutorture.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,8 @@ rcu_torture_writer(void *arg)
15891589
if (list_empty(&rcu_tortures[i].rtort_free) &&
15901590
rcu_access_pointer(rcu_torture_current) != &rcu_tortures[i]) {
15911591
tracing_off();
1592-
show_rcu_gp_kthreads();
1592+
if (cur_ops->gp_kthread_dbg)
1593+
cur_ops->gp_kthread_dbg();
15931594
WARN(1, "%s: rtort_pipe_count: %d\n", __func__, rcu_tortures[i].rtort_pipe_count);
15941595
rcu_ftrace_dump(DUMP_ALL);
15951596
}

0 commit comments

Comments
 (0)