diff options
author | Tejun Heo <tj@kernel.org> | 2011-12-12 21:12:22 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2011-12-12 21:12:22 -0500 |
commit | 494c167cf76d02000adf740c215adc69a824ecc9 (patch) | |
tree | bf7cdf462b62ebf099b965f7bea503df30918c17 /Documentation/cgroups | |
parent | 94196f51c1ee5bbad674de28c682b17d78adb8e6 (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.txt | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Documentation/cgroups/cgroups.txt b/Documentation/cgroups/cgroups.txt index 8a2f302327f..a7c96ae5557 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 | |||
615 | while the caller holds cgroup_mutex and it is ensured that either | 615 | while the caller holds cgroup_mutex and it is ensured that either |
616 | attach() or cancel_attach() will be called in future. | 616 | attach() or cancel_attach() will be called in future. |
617 | 617 | ||
618 | int can_attach_task(struct cgroup *cgrp, struct task_struct *tsk); | ||
619 | (cgroup_mutex held by caller) | ||
620 | |||
621 | As can_attach, but for operations that must be run once per task to be | ||
622 | attached (possibly many when using cgroup_attach_proc). Called after | ||
623 | can_attach. | ||
624 | |||
625 | void cancel_attach(struct cgroup_subsys *ss, struct cgroup *cgrp, | 618 | void 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. | |||
632 | This will be called only about subsystems whose can_attach() operation have | 625 | This will be called only about subsystems whose can_attach() operation have |
633 | succeeded. The parameters are identical to can_attach(). | 626 | succeeded. The parameters are identical to can_attach(). |
634 | 627 | ||
635 | void pre_attach(struct cgroup *cgrp); | ||
636 | (cgroup_mutex held by caller) | ||
637 | |||
638 | For any non-per-thread attachment work that needs to happen before | ||
639 | attach_task. Needed by cpuset. | ||
640 | |||
641 | void attach(struct cgroup_subsys *ss, struct cgroup *cgrp, | 628 | void 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 | |||
646 | post-attachment activity that requires memory allocations or blocking. | 633 | post-attachment activity that requires memory allocations or blocking. |
647 | The parameters are identical to can_attach(). | 634 | The parameters are identical to can_attach(). |
648 | 635 | ||
649 | void attach_task(struct cgroup *cgrp, struct task_struct *tsk); | ||
650 | (cgroup_mutex held by caller) | ||
651 | |||
652 | As attach, but for operations that must be run once per task to be attached, | ||
653 | like can_attach_task. Called before attach. Currently does not support any | ||
654 | subsystem that might need the old_cgrp for every thread in the group. | ||
655 | |||
656 | void fork(struct cgroup_subsy *ss, struct task_struct *task) | 636 | void fork(struct cgroup_subsy *ss, struct task_struct *task) |
657 | 637 | ||
658 | Called when a task is forked into a cgroup. | 638 | Called when a task is forked into a cgroup. |