cgroup: consolidate cgroup_attach_task() and cgroup_attach_proc()

These two functions share most of the code.

Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Li Zefan 2013-03-13 09:17:09 +08:00 committed by Tejun Heo
parent bd2953ebbb
commit 081aa458c3
3 changed files with 23 additions and 91 deletions

View file

@ -2008,7 +2008,7 @@ static void cpuset_do_move_task(struct task_struct *tsk,
struct cgroup *new_cgroup = scan->data;
cgroup_lock();
cgroup_attach_task(new_cgroup, tsk);
cgroup_attach_task(new_cgroup, tsk, false);
cgroup_unlock();
}