Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17451
b: refs/heads/master
c: dbc1651
h: refs/heads/master
i:
  17449: 5156638
  17447: ab0fa58
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jan 10, 2006
1 parent 2b4a17a commit 9cb4098
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1fd5a46dd6bbca3a1275465120caf4748872c2a7
refs/heads/master: dbc1651f0c5b7d13acc59d3b805a7224332fb1fb
11 changes: 4 additions & 7 deletions trunk/kernel/rcupdate.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,8 @@ static void rcu_do_batch(struct rcu_data *rdp)
* active batch and the batch to be registered has not already occurred.
* Caller must hold rcu_state.lock.
*/
static void rcu_start_batch(struct rcu_ctrlblk *rcp, struct rcu_state *rsp,
int next_pending)
static void rcu_start_batch(struct rcu_ctrlblk *rcp, struct rcu_state *rsp)
{
if (next_pending)
rcp->next_pending = 1;

if (rcp->next_pending &&
rcp->completed == rcp->cur) {
rcp->next_pending = 0;
Expand Down Expand Up @@ -275,7 +271,7 @@ static void cpu_quiet(int cpu, struct rcu_ctrlblk *rcp, struct rcu_state *rsp)
if (cpus_empty(rsp->cpumask)) {
/* batch completed ! */
rcp->completed = rcp->cur;
rcu_start_batch(rcp, rsp, 0);
rcu_start_batch(rcp, rsp);
}
}

Expand Down Expand Up @@ -410,7 +406,8 @@ static void __rcu_process_callbacks(struct rcu_ctrlblk *rcp,
if (!rcp->next_pending) {
/* and start it/schedule start if it's a new batch */
spin_lock(&rsp->lock);
rcu_start_batch(rcp, rsp, 1);
rcp->next_pending = 1;
rcu_start_batch(rcp, rsp);
spin_unlock(&rsp->lock);
}
} else {
Expand Down

0 comments on commit 9cb4098

Please sign in to comment.