]> 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)
commit15cf5eb681c9f039145d9cb4b9890fdacd057e7c
tree82d1e2ab77163416f6eb63d2b642e88b6ad63143
parentf4ec03f6edacc451046a4f417e8a0152812ce84b
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