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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user