• Tejun Heo's avatar
    cgroup: mark "tasks" cgroup file as insane · f12dc020
    Tejun Heo authored
    Some resources controlled by cgroup aren't per-task and cgroup core
    allowing threads of a single thread_group to be in different cgroups
    forced memcg do explicitly find the group leader and use it.  This is
    gonna be nasty when transitioning to unified hierarchy and in general
    we don't want and won't support granularity finer than processes.
    
    Mark "tasks" with CFTYPE_INSANE.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarLi Zefan <lizefan@huawei.com>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Cc: Michal Hocko <mhocko@suse.cz>
    Cc: Balbir Singh <bsingharora@gmail.com>
    Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Cc: cgroups@vger.kernel.org
    Cc: Vivek Goyal <vgoyal@redhat.com>
    f12dc020
cgroup.c 147 KB