• Paul Menage's avatar
    Currently the cgroups code makes the assumption that the subsystem · 8d6b2bce
    Paul Menage authored
    pointers in a struct css_set uniquely identify the hierarchy->cgroup
    mappings associated with the css_set; and there's no way to directly
    identify the associated set of cgroups other than by indirecting through
    the appropriate subsystem state pointers.
    
    This patch removes the need for that assumption by adding a back-pointer
    from struct cg_cgroup_link object to its associated cgroup; this allows
    the set of cgroups to be determined by traversing the cg_links list in the
    struct css_set.
    Signed-off-by: default avatarPaul Menage <menage@google.com>
    Reviewed-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
    Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Cc: Balbir Singh <balbir@in.ibm.com>
    Cc: Dhaval Giani <dhaval@linux.vnet.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    8d6b2bce
cgroup.c 103 KB