diff options
author | Tejun Heo <tj@kernel.org> | 2014-02-13 06:58:41 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-02-13 06:58:41 -0500 |
commit | 924f0d9a2078f49ff331bb43196ec5afadc16b8f (patch) | |
tree | 6df0c9852c7b16c2f2eb69b04f90aacae9f95132 /kernel/sched/core.c | |
parent | cb0f1fe9ba47c202a98a9d41ad5c12c0ac7732e9 (diff) |
cgroup: drop @skip_css from cgroup_taskset_for_each()
If !NULL, @skip_css makes cgroup_taskset_for_each() skip the matching
css. The intention of the interface is to make it easy to skip css's
(cgroup_subsys_states) which already match the migration target;
however, this is entirely unnecessary as migration taskset doesn't
include tasks which are already in the target cgroup. Drop @skip_css
from cgroup_taskset_for_each().
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r-- | kernel/sched/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index d4cfc5561830..ba386a06ab11 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c | |||
@@ -7600,7 +7600,7 @@ static int cpu_cgroup_can_attach(struct cgroup_subsys_state *css, | |||
7600 | { | 7600 | { |
7601 | struct task_struct *task; | 7601 | struct task_struct *task; |
7602 | 7602 | ||
7603 | cgroup_taskset_for_each(task, css, tset) { | 7603 | cgroup_taskset_for_each(task, tset) { |
7604 | #ifdef CONFIG_RT_GROUP_SCHED | 7604 | #ifdef CONFIG_RT_GROUP_SCHED |
7605 | if (!sched_rt_can_attach(css_tg(css), task)) | 7605 | if (!sched_rt_can_attach(css_tg(css), task)) |
7606 | return -EINVAL; | 7606 | return -EINVAL; |
@@ -7618,7 +7618,7 @@ static void cpu_cgroup_attach(struct cgroup_subsys_state *css, | |||
7618 | { | 7618 | { |
7619 | struct task_struct *task; | 7619 | struct task_struct *task; |
7620 | 7620 | ||
7621 | cgroup_taskset_for_each(task, css, tset) | 7621 | cgroup_taskset_for_each(task, tset) |
7622 | sched_move_task(task); | 7622 | sched_move_task(task); |
7623 | } | 7623 | } |
7624 | 7624 | ||