diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-04-19 12:40:32 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-05-15 13:30:20 -0400 |
commit | a824a287f6eaec65f1cf7aedfd5f6b69d2d3858f (patch) | |
tree | 68d5e746eea106fe6ca111a5c7dca132e059a275 /kernel/rcu/tree.c | |
parent | a508aa597ec2f046c00b8809f887f90cf1aaa47f (diff) |
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: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'kernel/rcu/tree.c')
-rw-r--r-- | kernel/rcu/tree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index c7b1e6b2a3da..25dbbc753fef 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -2181,6 +2181,7 @@ static void rcu_gp_cleanup(struct rcu_state *rsp) | |||
2181 | READ_ONCE(rsp->gpnum), | 2181 | READ_ONCE(rsp->gpnum), |
2182 | TPS("newreq")); | 2182 | TPS("newreq")); |
2183 | } | 2183 | } |
2184 | WRITE_ONCE(rsp->gp_flags, rsp->gp_flags & RCU_GP_FLAG_INIT); | ||
2184 | raw_spin_unlock_irq_rcu_node(rnp); | 2185 | raw_spin_unlock_irq_rcu_node(rnp); |
2185 | } | 2186 | } |
2186 | 2187 | ||