rcu: Make rcutorture fakewriters invoke rcu_barrier()
authorPaul E. McKenney <paul.mckenney@linaro.org>
Wed, 30 May 2012 00:50:51 +0000 (17:50 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 Jul 2012 19:34:04 +0000 (12:34 -0700)
commit72472a02a9c4507ef54d03d71bb253c26015f52c
treeb3aedcd9fc67357054b329548cd4cd001f36f6a9
parent143aa672f4fc643420c8325ad09c379ed33a27cf
rcu: Make rcutorture fakewriters invoke rcu_barrier()

The current rcutorture rcu_barrier() testing never intentionally runs
more than one instance of rcu_barrier() at a given time.  This fails
to test the the shiny new concurrency features of rcu_barrier().  This
commit therefore modifies the rcutorture fakewriter kthread to randomly
invoke rcu_barrier() rather than the usual synchronize_rcu().

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