]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mbind: restrict nodes to the currently allowed cpuset
authorChristoph Lameter <clameter@sgi.com>
Tue, 23 Jan 2007 04:40:45 +0000 (20:40 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 23 Jan 2007 15:52:06 +0000 (07:52 -0800)
commitc78a8079a03b64d3f3d8ab8c043aec5ef9bf0ae4
tree3ea69d5dbd7b131fc32bbf416ba9970079bd25c6
parent24bb7ad4bd9372352db53cb38b8ee1d586abba39
[PATCH] mbind: restrict nodes to the currently allowed cpuset

Currently one can specify an arbitrary node mask to mbind that includes
nodes not allowed.  If that is done with an interleave policy then we will
go around all the nodes.  Those outside of the currently allowed cpuset
will be redirected to the border nodes.  Interleave will then create
imbalances at the borders of the cpuset.

This patch restricts the nodes to the currently allowed cpuset.

The RFC for this patch was discussed at
http://marc.theaimsgroup.com/?t=116793842100004&r=1&w=2

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Paul Jackson <pj@sgi.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c