]> asedeno.scripts.mit.edu Git - linux.git/commit
rcutorture: Fix rcu_barrier successes counter
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Tue, 19 Jun 2018 22:14:19 +0000 (15:14 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 22:42:08 +0000 (15:42 -0700)
commitbf5b64355a3ce41752856b66c4efad4d7a88e84b
tree9894d06a15a08b64b2e3c2462a12b883f6883b7b
parent4babd855fd6137f9792117eb73b096c221a49d3c
rcutorture: Fix rcu_barrier successes counter

The rcutorture test module currently increments both successes and error
for the barrier test upon error, which results in misleading statistics
being printed.  This commit therefore changes the code to increment the
success counter only when the test actually passes.

This change was tested by by returning from the barrier callback without
incrementing the callback counter, thus introducing what appeared to
rcutorture to be rcu_barrier() failures.

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/rcutorture.c