summaryrefslogtreecommitdiff
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2016-03-08 11:51:25 -0500
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:51:01 +0300
commitb73ad13d7ea13f17381465a6ef2bc1e92938bb57 (patch)
tree19de7abcaed44f83eb390bc4818e50a2f5c92e2c /kernel/cgroup.c
parent2486334d03dc5c37a28541ceb0dfc19be30fb0b7 (diff)
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> Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index db79f8f75f0f..37c7ab9d3019 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -3013,7 +3013,7 @@ static int cgroup_update_dfl_csses(struct cgroup *cgrp)
struct cgrp_cset_link *link;
list_for_each_entry(link, &dsct->cset_links, cset_link)
- cgroup_migrate_add_src(link->cset, cgrp,
+ cgroup_migrate_add_src(link->cset, dsct,
&preloaded_csets);
}
spin_unlock_irq(&css_set_lock);