diff options
author | Paul Jackson <pj@sgi.com> | 2005-10-30 15:02:31 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-30 17:37:21 -0800 |
commit | 18a19cb3047e454ee5ecbc35d7acf3f8e09e0466 (patch) | |
tree | ad91d0024d886bdd207ba72e875e736e833de616 /mm/pdflush.c | |
parent | 053199edf54f685e7dea765b60d4d5e9070dadec (diff) | |
download | linux-stable-18a19cb3047e454ee5ecbc35d7acf3f8e09e0466.tar.gz linux-stable-18a19cb3047e454ee5ecbc35d7acf3f8e09e0466.tar.bz2 linux-stable-18a19cb3047e454ee5ecbc35d7acf3f8e09e0466.zip |
[PATCH] cpusets: simple rename
Add support for renaming cpusets. Only allow simple rename of cpuset
directories in place. Don't allow moving cpusets elsewhere in hierarchy or
renaming the special cpuset files in each cpuset directory.
The usefulness of this simple rename became apparent when developing task
migration facilities. It allows building a second cpuset hierarchy using
new names and containing new CPUs and Memory Nodes, moving tasks from the
old to the new cpusets, removing the old cpusets, and then renaming the new
cpusets to be just like the old names, so that any knowledge that the tasks
had of their cpuset names will still be valid.
Leaf node cpusets can be migrated to other CPUs or Memory Nodes by just
updating their 'cpus' and 'mems' files, but because no cpuset can contain
CPUs or Nodes not in its parent cpuset, one cannot do this in a cpuset
hierarchy without first expanding all the non-leaf cpusets to contain the
union of both the old and new CPUs and Nodes, which would obfuscate the
one-to-one migration of a task from one cpuset to another required to
correctly migrate the physical page frames currently allocated to that
task.
Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/pdflush.c')
0 files changed, 0 insertions, 0 deletions