Commit 9cafe974 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcutorture: Dump grace-period state upon rtort_pipe_count incidents



The rtort_pipe_count WARN() indicates that grace periods were unable
to invoke all callbacks during a stutter_wait() interval.  But it is
sometimes helpful to have a bit more information as to why.  This commit
therefore invokes show_rcu_gp_kthreads() immediately before that WARN()
in order to dump out some relevant information.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 06c2afb8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1581,6 +1581,7 @@ rcu_torture_writer(void *arg)
				    rcu_access_pointer(rcu_torture_current) !=
				    &rcu_tortures[i]) {
					tracing_off();
					show_rcu_gp_kthreads();
					WARN(1, "%s: rtort_pipe_count: %d\n", __func__, rcu_tortures[i].rtort_pipe_count);
					rcu_ftrace_dump(DUMP_ALL);
				}