Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223806
b: refs/heads/master
c: 5ff8e6f
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker authored and Paul E. McKenney committed Dec 17, 2010
1 parent 3fa5a8c commit cf11cf3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20377f32dcb77941d450728da18cce5b1a7faec5
refs/heads/master: 5ff8e6f0535fe730e921ca347bc38dcb9e01791a
9 changes: 9 additions & 0 deletions trunk/kernel/rcutree.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,15 @@ __rcu_process_gp_end(struct rcu_state *rsp, struct rcu_node *rnp, struct rcu_dat
/* Remember that we saw this grace-period completion. */
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
Expand Down

0 comments on commit cf11cf3

Please sign in to comment.