cpusets: allow empty {cpus,mems}_allowed to be set for unpopulated cpuset
commit6f7f02e78a75a09195d963e0392b195bc2d55c5c
authorDavid Rientjes <rientjes@google.com>
Tue, 8 May 2007 07:31:43 +0000 (8 00:31 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:14 +0000 (8 11:15 -0700)
treea0ead177a4faaafdfa400ff9de3c992603e42f4d
parent0c28f287aa57e065116731c1e44bedcbc14fd53f
cpusets: allow empty {cpus,mems}_allowed to be set for unpopulated cpuset

You currently cannot remove all cpus or mems from cpus_allowed or
mems_allowed of a cpuset.  We now allow both if there are no attached
tasks.

Acked-by: Paul Jackson <pj@sgi.com>
Cc: Christoph Lameter <clameter@engr.sgi.com>
Signed-off-by: Paul Menage <menage@google.com>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cpuset.c