Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187885
b: refs/heads/master
c: 99ee4ca
h: refs/heads/master
i:
  187883: e480fe9
v: v3
  • Loading branch information
Paul E. McKenney authored and Ingo Molnar committed Mar 4, 2010
1 parent 74fcda6 commit b1ebe58
Show file tree
Hide file tree
Showing 2 changed files with 3 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: e6033e3b307fcfae08408e0673266db38392bda4
refs/heads/master: 99ee4ca746dda71326db7645463b4075ac1d665c
2 changes: 2 additions & 0 deletions trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1730,10 +1730,12 @@ struct mempolicy *__mpol_dup(struct mempolicy *old)

if (!new)
return ERR_PTR(-ENOMEM);
rcu_read_lock();
if (current_cpuset_is_being_rebound()) {
nodemask_t mems = cpuset_mems_allowed(current);
mpol_rebind_policy(old, &mems);
}
rcu_read_unlock();
*new = *old;
atomic_set(&new->refcnt, 1);
return new;
Expand Down

0 comments on commit b1ebe58

Please sign in to comment.