aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
authorRami Rosen <ramirose@gmail.com>2013-04-10 07:41:17 -0400
committerTejun Heo <tj@kernel.org>2013-04-10 13:46:59 -0400
commit84cfb6ab484b442d5115eb3baf9db7d74a3ea626 (patch)
tree3a3d52372b7b6f0e42662103baa8f0ef24789bf2 /kernel/cgroup.c
parent8adf12b0ffd0a10340bab355e586f8533a69630d (diff)
cgroup: remove bind() method from cgroup_subsys.
The bind() method of cgroup_subsys is not used in any of the controllers (cpuset, freezer, blkio, net_cls, memcg, net_prio, devices, perf, hugetlb, cpu and cpuacct) tj: Removed the entry on ->bind() from Documentation/cgroups/cgroups.txt. Also updated a couple paragraphs which were suggesting that dynamic re-binding may be implemented. It's not gonna. Signed-off-by: Rami Rosen <ramirose@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r--kernel/cgroup.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index ba3e24a76dae..fd38e1cfacca 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -1064,16 +1064,12 @@ static int rebind_subsystems(struct cgroupfs_root *root,
1064 cgrp->subsys[i]->cgroup = cgrp; 1064 cgrp->subsys[i]->cgroup = cgrp;
1065 list_move(&ss->sibling, &root->subsys_list); 1065 list_move(&ss->sibling, &root->subsys_list);
1066 ss->root = root; 1066 ss->root = root;
1067 if (ss->bind)
1068 ss->bind(cgrp);
1069 /* refcount was already taken, and we're keeping it */ 1067 /* refcount was already taken, and we're keeping it */
1070 } else if (bit & removed_mask) { 1068 } else if (bit & removed_mask) {
1071 /* We're removing this subsystem */ 1069 /* We're removing this subsystem */
1072 BUG_ON(ss == NULL); 1070 BUG_ON(ss == NULL);
1073 BUG_ON(cgrp->subsys[i] != dummytop->subsys[i]); 1071 BUG_ON(cgrp->subsys[i] != dummytop->subsys[i]);
1074 BUG_ON(cgrp->subsys[i]->cgroup != cgrp); 1072 BUG_ON(cgrp->subsys[i]->cgroup != cgrp);
1075 if (ss->bind)
1076 ss->bind(dummytop);
1077 dummytop->subsys[i]->cgroup = dummytop; 1073 dummytop->subsys[i]->cgroup = dummytop;
1078 cgrp->subsys[i] = NULL; 1074 cgrp->subsys[i] = NULL;
1079 subsys[i]->root = &rootnode; 1075 subsys[i]->root = &rootnode;