summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorTejun Heo2016-03-03 15:58:01 +0100
committerTejun Heo2016-03-03 15:58:01 +0100
commit549626047df99f1129d4e742cce741055bdc2dcb (patch)
treee20796c4774af75153c7b3ef149eca6b623d5e83 /init
parentcgroup: allocate 2x cgrp_cset_links when setting up a new root (diff)
downloadkernel-qcow2-linux-549626047df99f1129d4e742cce741055bdc2dcb.tar.gz
kernel-qcow2-linux-549626047df99f1129d4e742cce741055bdc2dcb.tar.xz
kernel-qcow2-linux-549626047df99f1129d4e742cce741055bdc2dcb.zip
cgroup: update css iteration in cgroup_update_dfl_csses()
The existing sequences of operations ensure that the offlining csses are drained before cgroup_update_dfl_csses(), so even though cgroup_update_dfl_csses() uses css_for_each_descendant_pre() to walk the target cgroups, it doesn't end up operating on dead cgroups. Also, the function explicitly excludes the subtree root from operation. This is fragile and inconsistent with the rest of css update operations. This patch updates cgroup_update_dfl_csses() to use cgroup_for_each_live_descendant_pre() instead and include the subtree root. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions