From: Tejun Heo Date: Tue, 4 Jun 2013 02:13:02 +0000 (-0700) Subject: cgroup: mark "tasks" cgroup file as insane X-Git-Tag: upstream/snapshot3+hdmi~4814^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f12dc020149fad7087e119e54cffea668272bf7d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git cgroup: mark "tasks" cgroup file as insane 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: Tejun Heo Acked-by: Li Zefan Cc: Johannes Weiner Cc: Michal Hocko Cc: Balbir Singh Cc: KAMEZAWA Hiroyuki Cc: cgroups@vger.kernel.org Cc: Vivek Goyal --- diff --git a/kernel/cgroup.c b/kernel/cgroup.c index fefc41c..1e0f445 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -4037,6 +4037,7 @@ static int cgroup_clone_children_write(struct cgroup *cgrp, static struct cftype files[] = { { .name = "tasks", + .flags = CFTYPE_INSANE, /* use "procs" instead */ .open = cgroup_tasks_open, .write_u64 = cgroup_tasks_write, .release = cgroup_pidlist_release,