v2:
- Make sure that attach_ctx.old_cs won't be set to a source cpuset that is
also the destination cpuset.
v1: https://lore.kernel.org/lkml/[email protected]
This is a follow-up patch series to [1] to properly handle a special case
for cpuset task migration operation where the source and destination
cpusets are the same. Patch 1 handle this special cases by skipping
tasks are not migrating with respect to cpuset. Patch 2 enables
cpuset_*attach() to handle the case where thare many destination cpusets
which when a cpuset controller is enabled. Patch 3 adds a new test case
into test_cpuset to test proper handling of cpu affinity when cpuset
controller is disabled.
[1] https://lore.kernel.org/lkml/[email protected]
Michal Koutný (1):
selftests/cgroup: Add test for cpuset affinity on controller disable
Waiman Long (2):
cgroup/cpuset: Handle the special case of non-moving tasks in
cpuset_can_attach()
cgroup/cpuset: Support multiple destination cpusets for
cpuset_*attach()
kernel/cgroup/cpuset.c | 131 ++++++----
tools/testing/selftests/cgroup/test_cpuset.c | 243 +++++++++++++++++++
2 files changed, 321 insertions(+), 53 deletions(-)
--
2.55.0