aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2012-11-19 11:13:39 -0500
committerTejun Heo <tj@kernel.org>2012-11-19 11:13:39 -0500
commit033fa1c5f5f73833598a0beb022c0048fb769dad (patch)
treeec6c34da43d3d71ec3dbfc116ae1c3b8197edc89 /include
parent2260e7fc1f18ad815324605c1ce7d5c6fd9b19a2 (diff)
cgroup, cpuset: remove cgroup_subsys->post_clone()
Currently CGRP_CPUSET_CLONE_CHILDREN triggers ->post_clone(). Now that clone_children is cpuset specific, there's no reason to have this rather odd option activation mechanism in cgroup core. cpuset can check the flag from its ->css_allocate() and take the necessary action. Move cpuset_post_clone() logic to the end of cpuset_css_alloc() and remove cgroup_subsys->post_clone(). Loosely based on Glauber's "generalize post_clone into post_create" patch. Signed-off-by: Tejun Heo <tj@kernel.org> Original-patch-by: Glauber Costa <glommer@parallels.com> Original-patch: <1351686554-22592-2-git-send-email-glommer@parallels.com> Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com> Acked-by: Li Zefan <lizefan@huawei.com> Cc: Glauber Costa <glommer@parallels.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cgroup.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index d2f82979f6c1..c798997e5011 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -452,7 +452,6 @@ struct cgroup_subsys {
452 void (*fork)(struct task_struct *task); 452 void (*fork)(struct task_struct *task);
453 void (*exit)(struct cgroup *cgrp, struct cgroup *old_cgrp, 453 void (*exit)(struct cgroup *cgrp, struct cgroup *old_cgrp,
454 struct task_struct *task); 454 struct task_struct *task);
455 void (*post_clone)(struct cgroup *cgrp);
456 void (*bind)(struct cgroup *root); 455 void (*bind)(struct cgroup *root);
457 456
458 int subsys_id; 457 int subsys_id;