Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a824a287 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu: Clear request other than RCU_GP_FLAG_INIT at GP end



Once the grace period has ended, any RCU_GP_FLAG_FQS requests are
irrelevant:  The grace period has ended, so there is no longer any
point in forcing quiescent states in order to try to make it end sooner.
This commit therefore causes rcu_gp_cleanup() to clear any bits other
than RCU_GP_FLAG_INIT from ->gp_flags at the end of the grace period.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: default avatarNicholas Piggin <npiggin@gmail.com>
parent a508aa59
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2181,6 +2181,7 @@ static void rcu_gp_cleanup(struct rcu_state *rsp)
				       READ_ONCE(rsp->gpnum),
				       TPS("newreq"));
	}
	WRITE_ONCE(rsp->gp_flags, rsp->gp_flags & RCU_GP_FLAG_INIT);
	raw_spin_unlock_irq_rcu_node(rnp);
}