summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rcutree.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index 916f42b..8105271 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -680,6 +680,15 @@ __rcu_process_gp_end(struct rcu_state *rsp, struct rcu_node *rnp, struct rcu_dat
rdp->completed = rnp->completed;
/*
+ * If we were in an extended quiescent state, we may have
+ * missed some grace periods that others CPUs took care on
+ * our behalf. Catch up with this state to avoid noting
+ * spurious new grace periods.
+ */
+ if (rdp->completed > rdp->gpnum)
+ rdp->gpnum = rdp->completed;
+
+ /*
* If another CPU handled our extended quiescent states and
* we have no more grace period to complete yet, then stop
* chasing quiescent states.
OpenPOWER on IntegriCloud