rcu: Add debug checks to TREE_PREEMPT_RCU for premature grace periods
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 13 Sep 2009 16:15:09 +0000 (09:15 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Sep 2009 22:06:13 +0000 (00:06 +0200)
commitb0e165c035b13e1074fa0b555318bd9cb7102558
treec65de438df4e8ad3e9e562663b377d61cc87af57
parentbbe3eae8bb039b5ffd64a6e3d1a0deaa1f3cbae9
rcu: Add debug checks to TREE_PREEMPT_RCU for premature grace periods

Check to make sure that there are no blocked tasks for the previous
grace period while initializing for the next grace period, verify
that rcu_preempt_qs() is given the correct CPU number and is never
called for an offline CPU.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: laijs@cn.fujitsu.com
Cc: dipankar@in.ibm.com
Cc: akpm@linux-foundation.org
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
LKML-Reference: <12528585111986-git-send-email->
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/rcutree.c
kernel/rcutree_plugin.h