Skip to content

Commit

Permalink
rcutorture: Add more diagnostics in rcu_barrier() test failure case
Browse files Browse the repository at this point in the history
Signed-off-by: Paul E. McKenney <[email protected]>
  • Loading branch information
paulmck committed Jan 11, 2015
1 parent d2f74b5 commit 7602de4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/rcu/rcutorture.c
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,9 @@ static int rcu_torture_barrier(void *arg)
cur_ops->cb_barrier(); /* Implies smp_mb() for wait_event(). */
if (atomic_read(&barrier_cbs_invoked) != n_barrier_cbs) {
n_rcu_torture_barrier_error++;
pr_err("barrier_cbs_invoked = %d, n_barrier_cbs = %d\n",
atomic_read(&barrier_cbs_invoked),
n_barrier_cbs);
WARN_ON_ONCE(1);
}
n_barrier_successes++;
Expand Down

0 comments on commit 7602de4

Please sign in to comment.