]> git.baikalelectronics.ru Git - kernel.git/commit
hotplug cpu move tasks in empty cpusets - refinements
authorPaul Jackson <pj@sgi.com>
Thu, 7 Feb 2008 08:14:47 +0000 (00:14 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:22 +0000 (08:42 -0800)
commita605490dd81e4c065f49b99f109b4e5483afd9e2
treefbe569493c0c17936498a6b5660db889b7ee95fd
parentff1b502f2bcc06d8615f9b1f9f0a83f5a0798386
hotplug cpu move tasks in empty cpusets - refinements

- Narrow the scope of callback_mutex in scan_for_empty_cpusets().

- Avoid rewriting the cpus, mems of cpusets except when it is likely that
  we'll be changing them.

- Have remove_tasks_in_empty_cpuset() also check for empty mems.

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