You need to sign in or sign up before continuing.
  • T
    cgroup, memcg: allocate cgroup ID from 1 · 7d699ddb
    Tejun Heo 提交于
    Currently, cgroup->id is allocated from 0, which is always assigned to
    the root cgroup; unfortunately, memcg wants to use ID 0 to indicate
    invalid IDs and ends up incrementing all IDs by one.
    
    It's reasonable to reserve 0 for special purposes.  This patch updates
    cgroup core so that ID 0 is not used and the root cgroups get ID 1.
    The ID incrementing is removed form memcg.
    Signed-off-by: NTejun Heo <tj@kernel.org>
    Acked-by: NMichal Hocko <mhocko@suse.cz>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Acked-by: NLi Zefan <lizefan@huawei.com>
    7d699ddb
memcontrol.c 190.5 KB