Re: [PATCH 10/16] rcu: Check for RCU_FLAG_GP_INIT bit in gp_flags for spurious wakeup

2014-07-23 Thread Paul E. McKenney
On Wed, Jul 23, 2014 at 01:09:47AM -0400, Pranith Kumar wrote: > rcu_gp_init() is called once the gp_kthread wakes up on the condition that > the init bit is set in the gp_flags. For a spurious wakeup we need to check > that > it is actually set. This commit ensures that the RCU_GP_FLAG_INIT bit i

[PATCH 10/16] rcu: Check for RCU_FLAG_GP_INIT bit in gp_flags for spurious wakeup

2014-07-22 Thread Pranith Kumar
rcu_gp_init() is called once the gp_kthread wakes up on the condition that the init bit is set in the gp_flags. For a spurious wakeup we need to check that it is actually set. This commit ensures that the RCU_GP_FLAG_INIT bit is set in gp_flags. Signed-off-by: Pranith Kumar --- kernel/rcu/tree.c