mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
cgroup: fix broken css_has_online_children()
After running:
# mount -t cgroup cpu xxx /cgroup && mkdir /cgroup/sub && \
rmdir /cgroup/sub && umount /cgroup
I found the cgroup root still existed:
# cat /proc/cgroups
#subsys_name hierarchy num_cgroups enabled
cpuset 0 1 1
cpu 1 1 1
...
It turned out css_has_online_children() is broken.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Sigend-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
ebe06187bf
commit
99bae5f941
1 changed files with 1 additions and 1 deletions
|
|
@ -3328,7 +3328,7 @@ bool css_has_online_children(struct cgroup_subsys_state *css)
|
|||
|
||||
rcu_read_lock();
|
||||
css_for_each_child(child, css) {
|
||||
if (css->flags & CSS_ONLINE) {
|
||||
if (child->flags & CSS_ONLINE) {
|
||||
ret = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue