aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/cgroups
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-12-12 21:12:22 -0500
committerTejun Heo <tj@kernel.org>2011-12-12 21:12:22 -0500
commit494c167cf76d02000adf740c215adc69a824ecc9 (patch)
treebf7cdf462b62ebf099b965f7bea503df30918c17 /Documentation/cgroups
parent94196f51c1ee5bbad674de28c682b17d78adb8e6 (diff)
cgroup: kill subsys->can_attach_task(), pre_attach() and attach_task()
These three methods are no longer used. Kill them. Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com> Acked-by: Paul Menage <paul@paulmenage.org> Cc: Li Zefan <lizf@cn.fujitsu.com>
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r--Documentation/cgroups/cgroups.txt20
1 files changed, 0 insertions, 20 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt
index 8a2f302327fa..a7c96ae5557c 100644
--- a/Documentation/cgroups/cgroups.txt
+++ b/Documentation/cgroups/cgroups.txt
@@ -615,13 +615,6 @@ fork. If this method returns 0 (success) then this should remain valid
615while the caller holds cgroup_mutex and it is ensured that either 615while the caller holds cgroup_mutex and it is ensured that either
616attach() or cancel_attach() will be called in future. 616attach() or cancel_attach() will be called in future.
617 617
618int can_attach_task(struct cgroup *cgrp, struct task_struct *tsk);
619(cgroup_mutex held by caller)
620
621As can_attach, but for operations that must be run once per task to be
622attached (possibly many when using cgroup_attach_proc). Called after
623can_attach.
624
625void cancel_attach(struct cgroup_subsys *ss, struct cgroup *cgrp, 618void cancel_attach(struct cgroup_subsys *ss, struct cgroup *cgrp,
626 struct cgroup_taskset *tset) 619 struct cgroup_taskset *tset)
627(cgroup_mutex held by caller) 620(cgroup_mutex held by caller)
@@ -632,12 +625,6 @@ function, so that the subsystem can implement a rollback. If not, not necessary.
632This will be called only about subsystems whose can_attach() operation have 625This will be called only about subsystems whose can_attach() operation have
633succeeded. The parameters are identical to can_attach(). 626succeeded. The parameters are identical to can_attach().
634 627
635void pre_attach(struct cgroup *cgrp);
636(cgroup_mutex held by caller)
637
638For any non-per-thread attachment work that needs to happen before
639attach_task. Needed by cpuset.
640
641void attach(struct cgroup_subsys *ss, struct cgroup *cgrp, 628void attach(struct cgroup_subsys *ss, struct cgroup *cgrp,
642 struct cgroup_taskset *tset) 629 struct cgroup_taskset *tset)
643(cgroup_mutex held by caller) 630(cgroup_mutex held by caller)
@@ -646,13 +633,6 @@ Called after the task has been attached to the cgroup, to allow any
646post-attachment activity that requires memory allocations or blocking. 633post-attachment activity that requires memory allocations or blocking.
647The parameters are identical to can_attach(). 634The parameters are identical to can_attach().
648 635
649void attach_task(struct cgroup *cgrp, struct task_struct *tsk);
650(cgroup_mutex held by caller)
651
652As attach, but for operations that must be run once per task to be attached,
653like can_attach_task. Called before attach. Currently does not support any
654subsystem that might need the old_cgrp for every thread in the group.
655
656void fork(struct cgroup_subsy *ss, struct task_struct *task) 636void fork(struct cgroup_subsy *ss, struct task_struct *task)
657 637
658Called when a task is forked into a cgroup. 638Called when a task is forked into a cgroup.