Skip to content
Commit 99bae5f9 authored by Li Zefan's avatar Li Zefan Committed by Tejun Heo
Browse files

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: default avatarLi Zefan <lizefan@huawei.com>
Sigend-off-by: default avatarTejun Heo <tj@kernel.org>
parent ebe06187
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment