diff options
author | Tejun Heo <tj@kernel.org> | 2013-04-07 12:29:51 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-04-07 12:29:51 -0400 |
commit | b9777cf8d7c7854c3c38bd6621d993b85c2afcdf (patch) | |
tree | d3f0275df187bb01a4262971f8fea6f4dbf7f26d /include | |
parent | 7ae1bad99e27b8838d480a24edf4646a2fc547df (diff) |
cgroup: unexport locking interface and cgroup_attach_task()
Now that all external cgroup_lock() users are gone, we can finally
unexport the locking interface and prevent future abuse of
cgroup_mutex.
Make cgroup_[un]lock() and cgroup_lock_live_group() static. Also,
cgroup_attach_task() doesn't have any user left and can't be used
without locking interface anyway. Make it static too.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cgroup.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index f8eb01d75ddc..63deb70f3149 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -30,10 +30,7 @@ struct css_id; | |||
30 | 30 | ||
31 | extern int cgroup_init_early(void); | 31 | extern int cgroup_init_early(void); |
32 | extern int cgroup_init(void); | 32 | extern int cgroup_init(void); |
33 | extern void cgroup_lock(void); | ||
34 | extern int cgroup_lock_is_held(void); | 33 | extern int cgroup_lock_is_held(void); |
35 | extern bool cgroup_lock_live_group(struct cgroup *cgrp); | ||
36 | extern void cgroup_unlock(void); | ||
37 | extern void cgroup_fork(struct task_struct *p); | 34 | extern void cgroup_fork(struct task_struct *p); |
38 | extern void cgroup_post_fork(struct task_struct *p); | 35 | extern void cgroup_post_fork(struct task_struct *p); |
39 | extern void cgroup_exit(struct task_struct *p, int run_callbacks); | 36 | extern void cgroup_exit(struct task_struct *p, int run_callbacks); |
@@ -693,8 +690,6 @@ struct task_struct *cgroup_iter_next(struct cgroup *cgrp, | |||
693 | struct cgroup_iter *it); | 690 | struct cgroup_iter *it); |
694 | void cgroup_iter_end(struct cgroup *cgrp, struct cgroup_iter *it); | 691 | void cgroup_iter_end(struct cgroup *cgrp, struct cgroup_iter *it); |
695 | int cgroup_scan_tasks(struct cgroup_scanner *scan); | 692 | int cgroup_scan_tasks(struct cgroup_scanner *scan); |
696 | int cgroup_attach_task(struct cgroup *cgrp, struct task_struct *tsk, | ||
697 | bool threadgroup); | ||
698 | int cgroup_attach_task_all(struct task_struct *from, struct task_struct *); | 693 | int cgroup_attach_task_all(struct task_struct *from, struct task_struct *); |
699 | int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from); | 694 | int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from); |
700 | 695 | ||