rcutorture: Add more diagnostics in rcu_barrier() test failure case
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
parent
d2f74b5b48
commit
7602de4af1
1 changed files with 3 additions and 0 deletions
|
@ -1427,6 +1427,9 @@ static int rcu_torture_barrier(void *arg)
|
||||||
cur_ops->cb_barrier(); /* Implies smp_mb() for wait_event(). */
|
cur_ops->cb_barrier(); /* Implies smp_mb() for wait_event(). */
|
||||||
if (atomic_read(&barrier_cbs_invoked) != n_barrier_cbs) {
|
if (atomic_read(&barrier_cbs_invoked) != n_barrier_cbs) {
|
||||||
n_rcu_torture_barrier_error++;
|
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);
|
WARN_ON_ONCE(1);
|
||||||
}
|
}
|
||||||
n_barrier_successes++;
|
n_barrier_successes++;
|
||||||
|
|
Loading…
Reference in a new issue