rcu: Further cleanups of use of lastcomp
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sat, 14 Nov 2009 03:51:38 +0000 (19:51 -0800)
committerIngo Molnar <mingo@elte.hu>
Sat, 14 Nov 2009 09:31:42 +0000 (10:31 +0100)
commit560d4bc0df9a5e63b980432282d8c2bd3559ec74
tree1e44bf34973b217977d0b4d57d2b1ee1d4209f08
parent8e9aa8f067d2dcd9457980ced618e1cffbcfba46
rcu: Further cleanups of use of lastcomp

Now that a copy of the rsp->completed flag is available in all
rcu_node structures, make full use of it.  It is still
legitimate to access rsp->completed while holding the root
rcu_node structure's lock, however.

Also, tighten up force_quiescent_state()'s checks for end of
current grace period.

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