]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit58cdb1ceb15aab7b34719ad225ff023775d774e7
tree82d1e2ab77163416f6eb63d2b642e88b6ad63143
parent6cc578df40bd60b791725e4451bc01f8c80abd8b
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