diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2009-09-18 12:50:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-19 02:53:21 -0400 |
commit | 49e291266d0920264471d9d64268fb030e33a99a (patch) | |
tree | 8770717427ee877e6b7b3dae6b120f35be645d70 /kernel/rcutree_plugin.h | |
parent | e7d8842ed34a7fe19d1ed90f84c211fb056ac523 (diff) |
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>
Diffstat (limited to 'kernel/rcutree_plugin.h')
-rw-r--r-- | kernel/rcutree_plugin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index cd6047cc7fc2..09b7325baad1 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h | |||
@@ -476,10 +476,12 @@ static void rcu_print_task_stall(struct rcu_node *rnp) | |||
476 | 476 | ||
477 | /* | 477 | /* |
478 | * Because there is no preemptable RCU, there can be no readers blocked, | 478 | * Because there is no preemptable RCU, there can be no readers blocked, |
479 | * so there is no need to check for blocked tasks. | 479 | * so there is no need to check for blocked tasks. So check only for |
480 | * bogus qsmask values. | ||
480 | */ | 481 | */ |
481 | static void rcu_preempt_check_blocked_tasks(struct rcu_node *rnp) | 482 | static void rcu_preempt_check_blocked_tasks(struct rcu_node *rnp) |
482 | { | 483 | { |
484 | WARN_ON_ONCE(rnp->qsmask); | ||
483 | } | 485 | } |
484 | 486 | ||
485 | /* | 487 | /* |