rcu: Initialize multi-level RCU grace periods holding locks
commitb835db1f9cadaf008750a32664e35a207782c95e
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 8 Sep 2009 22:54:37 +0000 (8 15:54 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Sep 2009 22:05:14 +0000 (18 00:05 +0200)
tree5bf73f245ac83250a984b8a14adfe3c7596b684f
parentde078d875cc7fc709f7818f26d38389c04369826
rcu: Initialize multi-level RCU grace periods holding locks

Prior implementations initialized the root and any internal
nodes without holding locks, then initialized the leaves
holding locks.

This is a false economy, as the leaf nodes will usually greatly
outnumber the root and internal nodes.  Acquiring locks on all
nodes is conceptually much simpler as well.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: laijs@cn.fujitsu.com
Cc: dipankar@in.ibm.com
Cc: akpm@linux-foundation.org
Cc: mathieu.desnoyers@polymtl.ca
Cc: josht@linux.vnet.ibm.com
Cc: dvhltc@us.ibm.com
Cc: niv@us.ibm.com
Cc: peterz@infradead.org
LKML-Reference: <12524504773190-git-send-email->
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/rcutree.c