* [patch 4/3] cpusets: memory_spread_user interleaves over all mems_allowed
@ 2007-10-26 2:34 David Rientjes
2007-10-26 3:19 ` Paul Jackson
0 siblings, 1 reply; 2+ messages in thread
From: David Rientjes @ 2007-10-26 2:34 UTC (permalink / raw)
To: Andrew Morton
Cc: Andi Kleen, Paul Jackson, Christoph Lameter, Lee Schermerhorn,
linux-kernel
Instead of using current's mems_allowed, which may differ from the
mems_allowed of the cpuset being updated, the newmask passed to
mpol_rebind_mm() is used as the interleave mask in the
memory_spread_user case.
Cc: Andi Kleen <ak@suse.de>
Cc: Paul Jackson <pj@sgi.com>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Signed-off-by: David Rientjes <rientjes@google.com>
---
mm/mempolicy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -1740,7 +1740,7 @@ static void mpol_rebind_policy(struct mempolicy *pol,
break;
case MPOL_INTERLEAVE:
if (current_cpuset_is_spread_user())
- tmp = cpuset_mems_allowed(current);
+ tmp = *newmask;
else
nodes_remap(tmp, pol->v.nodes, *mpolmask, *newmask);
pol->v.nodes = tmp;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 4/3] cpusets: memory_spread_user interleaves over all mems_allowed
2007-10-26 2:34 [patch 4/3] cpusets: memory_spread_user interleaves over all mems_allowed David Rientjes
@ 2007-10-26 3:19 ` Paul Jackson
0 siblings, 0 replies; 2+ messages in thread
From: Paul Jackson @ 2007-10-26 3:19 UTC (permalink / raw)
To: David Rientjes; +Cc: akpm, ak, clameter, Lee.Schermerhorn, linux-kernel
David wrote:
> - tmp = cpuset_mems_allowed(current);
> + tmp = *newmask;
I see this as a nice little optimization, not a change in
what the code does. That is, *newmask happens to already
hold cpuset_mems_allowed(current), so can be used for such.
Is that right?
If so, nice tweak - thanks.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.925.600.0401
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-26 3:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-26 2:34 [patch 4/3] cpusets: memory_spread_user interleaves over all mems_allowed David Rientjes
2007-10-26 3:19 ` Paul Jackson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.