rcu: Fix thinko, actually initialize full tree
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 18 Sep 2009 16:50:19 +0000 (09:50 -0700)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Sep 2009 06:53:21 +0000 (08:53 +0200)
commit49e291266d0920264471d9d64268fb030e33a99a
tree8770717427ee877e6b7b3dae6b120f35be645d70
parente7d8842ed34a7fe19d1ed90f84c211fb056ac523
rcu: Fix thinko, actually initialize full tree

Commit de078d8 ("rcu: Need to update rnp->gpnum if preemptable RCU
is to be reliable") repeatedly and incorrectly initializes the root
rcu_node structure's ->gpnum field rather than initializing the
->gpnum field of each node in the tree.  Fix this.  Also add an
additional consistency check to catch this in the future.

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: <125329262011-git-send-email->
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/rcutree.c
kernel/rcutree_plugin.h