summaryrefslogtreecommitdiffstats
path: root/include/linux/backing-dev.h
diff options
context:
space:
mode:
authorTejun Heo2015-09-11 21:00:22 +0200
committerTejun Heo2015-09-22 18:46:53 +0200
commit10265075aa3a8629b0ccdcff4d10b17bd740defe (patch)
tree9f662435ad42d87814f4cd6b1b52d427878e29d0 /include/linux/backing-dev.h
parentcgroup: separate out taskset operations from cgroup_migrate() (diff)
downloadkernel-qcow2-linux-10265075aa3a8629b0ccdcff4d10b17bd740defe.tar.gz
kernel-qcow2-linux-10265075aa3a8629b0ccdcff4d10b17bd740defe.tar.xz
kernel-qcow2-linux-10265075aa3a8629b0ccdcff4d10b17bd740defe.zip
cgroup: make cgroup_update_dfl_csses() migrate all target processes atomically
cgroup_update_dfl_csses() is responsible for migrating processes when controllers are enabled or disabled on the default hierarchy. As the css association changes for all the processes in the affected cgroups, this involves migrating multiple processes. Up until now, it was implemented by migrating process-by-process until the source css_sets are empty; however, this means that if a process fails to migrate after some succeed before it, the recovery is very tricky. This was considered okay as subsystems weren't allowed to reject process migration on the default hierarchy; unfortunately, enforcing this policy turned out to be problematic for certain types of resources - realtime slices for now. As such, the default hierarchy is gonna allow restricted failures during migration and to support that this patch makes cgroup_update_dfl_csses() migrate all target processes atomically rather than one-by-one. The preceding patches made subsystems ready for multi-process migration and factored out taskset operations making this almost trivial. All tasks of the target processes are put in the same taskset and the migration operations are performed once which either fails or succeeds for all. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'include/linux/backing-dev.h')
0 files changed, 0 insertions, 0 deletions