• T
    cgroup: add cgroup->id · 0a950f65
    Tejun Heo 提交于
    With the introduction of generic cgroup hierarchy iterators, css_id is
    being phased out.  It was unnecessarily complex, id'ing the wrong
    thing (cgroups need IDs, not CSSes) and has other oddities like not
    being available at ->css_alloc().
    
    This patch adds cgroup->id, which is a simple per-hierarchy
    ida-allocated ID which is assigned before ->css_alloc() and released
    after ->css_free().
    Signed-off-by: NTejun Heo <tj@kernel.org>
    Acked-by: NLi Zefan <lizefan@huawei.com>
    Acked-by: NNeil Horman <nhorman@tuxdriver.com>
    0a950f65
cgroup.c 147.0 KB