]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: fix incorrect destination cgroup in cgroup_update_dfl_csses()
authorTejun Heo <tj@kernel.org>
Tue, 8 Mar 2016 16:51:25 +0000 (11:51 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 8 Mar 2016 16:51:25 +0000 (11:51 -0500)
commitc1ce13d64683ce899f36cbb974b6f44405217554
tree82d1e2ab77163416f6eb63d2b642e88b6ad63143
parent6fe2d51136e5960ba41aafb2d2ac1ee5008fb5c3
cgroup: fix incorrect destination cgroup in cgroup_update_dfl_csses()

cgroup_update_dfl_csses() should move each task in the subtree to
self; however, it was incorrectly calling cgroup_migrate_add_src()
with the root of the subtree as @dst_cgrp.  Fortunately,
cgroup_migrate_add_src() currently uses @dst_cgrp only to determine
the hierarchy and the bug doesn't cause any actual breakages.  Fix it.

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