]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: make cgroup[_taskset]_migrate() take cgroup_root instead of cgroup
authorTejun Heo <tj@kernel.org>
Tue, 8 Mar 2016 16:51:26 +0000 (11:51 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 8 Mar 2016 16:51:26 +0000 (11:51 -0500)
commit1a0fae04b5281d0f3d424265dfdb1956aa11b18d
tree2a3e271c6cb2c2c752ac51d7d46aa2c62dbcaa0a
parent4d5566a2bbb1a71b49499a289316a3b8c8a23c5e
cgroup: make cgroup[_taskset]_migrate() take cgroup_root instead of cgroup

On the default hierarchy, a migration can be multi-source and/or
multi-destination.  cgroup_taskest_migrate() used to incorrectly
assume single destination cgroup but the bug has been fixed by
5206feaf35c9 ("cgroup: fix handling of multi-destination migration
from subtree_control enabling").

Since the commit, @dst_cgrp to cgroup[_taskset]_migrate() is only used
to determine which subsystems are affected or which cgroup_root the
migration is taking place in.  As such, @dst_cgrp is misleading.  This
patch replaces @dst_cgrp with @root.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c