• Tejun Heo's avatar
    cgroup: move subsys file removal to kill_css() · 3c14f8b4
    Tejun Heo authored
    With the planned unified hierarchy, individual css's will be created
    and destroyed dynamically across the lifetime of a cgroup.  To enable
    such usages, css destruction is being decoupled from cgroup
    destruction.  This patch moves subsys file removal from
    cgroup_destroy_locked() to kill_css().
    
    While this changes the order of destruction operations, the changes
    shouldn't be noticeable to cgroup subsystems or userland.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarLi Zefan <lizefan@huawei.com>
    3c14f8b4
cgroup.c 157 KB