aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcutree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-01-04 18:09:10 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-13 03:06:05 -0500
commitbf66f18e79e34c421bbd8f6511e2c556b779df2f (patch)
tree2348e3bc8392addf7959fbe94003f7e0da2a1c8b /kernel/rcutree.c
parent46a1e34eda805501a8b32f26394faa435149f6d1 (diff)
rcu: Add force_quiescent_state() testing to rcutorture
Add force_quiescent_state() testing to rcutorture, with a separate thread that repeatedly invokes force_quiescent_state() in bursts. This can greatly increase the probability of encountering certain types of race conditions. Suggested-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: laijs@cn.fujitsu.com Cc: dipankar@in.ibm.com Cc: mathieu.desnoyers@polymtl.ca Cc: josh@joshtriplett.org Cc: dvhltc@us.ibm.com Cc: niv@us.ibm.com Cc: peterz@infradead.org Cc: rostedt@goodmis.org Cc: Valdis.Kletnieks@vt.edu Cc: dhowells@redhat.com LKML-Reference: <1262646551116-git-send-email-> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r--kernel/rcutree.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index 55e8f6ef8195..0a4c32879398 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -157,6 +157,24 @@ long rcu_batches_completed_bh(void)
157EXPORT_SYMBOL_GPL(rcu_batches_completed_bh); 157EXPORT_SYMBOL_GPL(rcu_batches_completed_bh);
158 158
159/* 159/*
160 * Force a quiescent state for RCU BH.
161 */
162void rcu_bh_force_quiescent_state(void)
163{
164 force_quiescent_state(&rcu_bh_state, 0);
165}
166EXPORT_SYMBOL_GPL(rcu_bh_force_quiescent_state);
167
168/*
169 * Force a quiescent state for RCU-sched.
170 */
171void rcu_sched_force_quiescent_state(void)
172{
173 force_quiescent_state(&rcu_sched_state, 0);
174}
175EXPORT_SYMBOL_GPL(rcu_sched_force_quiescent_state);
176
177/*
160 * Does the CPU have callbacks ready to be invoked? 178 * Does the CPU have callbacks ready to be invoked?
161 */ 179 */
162static int 180static int