Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188924
b: refs/heads/master
c: c6b6ef8
h: refs/heads/master
v: v3
  • Loading branch information
Lee Schermerhorn authored and Linus Torvalds committed Mar 24, 2010
1 parent edbf02b commit 0b55ef8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 7198f3c9b13c7aa1e5d9f7ff74c0ea303174feff
refs/heads/master: c6b6ef8bb05af632889c5536513b9f4004961f73
10 changes: 7 additions & 3 deletions trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,13 @@ static long do_get_mempolicy(int *policy, nodemask_t *nmask,

err = 0;
if (nmask) {
task_lock(current);
get_policy_nodemask(pol, nmask);
task_unlock(current);
if (mpol_store_user_nodemask(pol)) {
*nmask = pol->w.user_nodemask;
} else {
task_lock(current);
get_policy_nodemask(pol, nmask);
task_unlock(current);
}
}

out:
Expand Down

0 comments on commit 0b55ef8

Please sign in to comment.