]> git.baikalelectronics.ru Git - kernel.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)
commit574f3aa51d6d0185c6ced79be5e78eca415d2968
tree9894d06a15a08b64b2e3c2462a12b883f6883b7b
parent19e211bd45ab87f3404a22b14d9cd2b38d1ecf31
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