rcutorture: Fix rcu_torture_cbflood() for callback-free RCU
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 23 Jun 2015 01:11:31 +0000 (18:11 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 15 Jul 2015 21:47:17 +0000 (14:47 -0700)
commit3a0af333415830d2a0ca77de832336af5aadced4
treec5b95499f63e853e398d9fad97a06bae0edfc4c6
parente8e255f7191fb6491dd1d96cfbbe19981f6eb3dd
rcutorture: Fix rcu_torture_cbflood() for callback-free RCU

The rcu_torture_cbflood() function correctly checks for flavors of
RCU that lack analogs to call_rcu() and rcu_barrier(), but in that
case it fails to terminate correctly.  In fact, it terminates so
incorrectly that segfaults can result.  This commit therefore causes
rcu_torture_cbflood() to do the proper wait-for-stop procedure.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/rcutorture.c