diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-12-17 21:39:54 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-01-10 22:08:06 -0500 |
commit | 7602de4af192b1527767538454557cb7564bae60 (patch) | |
tree | 5cf90f1583d36360f104b80e8cde92f6cf16494f /kernel | |
parent | d2f74b5b488dd2b283977f64844fee3ba91676db (diff) |
rcutorture: Add more diagnostics in rcu_barrier() test failure case
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rcu/rcutorture.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 24142c200901..30d42aa55d83 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c | |||
@@ -1427,6 +1427,9 @@ static int rcu_torture_barrier(void *arg) | |||
1427 | cur_ops->cb_barrier(); /* Implies smp_mb() for wait_event(). */ | 1427 | cur_ops->cb_barrier(); /* Implies smp_mb() for wait_event(). */ |
1428 | if (atomic_read(&barrier_cbs_invoked) != n_barrier_cbs) { | 1428 | if (atomic_read(&barrier_cbs_invoked) != n_barrier_cbs) { |
1429 | n_rcu_torture_barrier_error++; | 1429 | n_rcu_torture_barrier_error++; |
1430 | pr_err("barrier_cbs_invoked = %d, n_barrier_cbs = %d\n", | ||
1431 | atomic_read(&barrier_cbs_invoked), | ||
1432 | n_barrier_cbs); | ||
1430 | WARN_ON_ONCE(1); | 1433 | WARN_ON_ONCE(1); |
1431 | } | 1434 | } |
1432 | n_barrier_successes++; | 1435 | n_barrier_successes++; |