aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-10-15 09:24:15 -0400
committerIngo Molnar <mingo@elte.hu>2010-10-22 08:16:45 -0400
commitb2b5ce022acf5e9f52f7b78c5579994fdde191d4 (patch)
tree15e7d1742b530cdbe7b0734378e7f043b9a5faac /kernel/sched.c
parentb7dadc38797584f6203386da1947ed5edf516646 (diff)
sched, cgroup: Fixup broken cgroup movement
Dima noticed that we fail to correct the ->vruntime of sleeping tasks when we move them between cgroups. Reported-by: Dima Zavin <dima@android.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Tested-by: Mike Galbraith <efault@gmx.de> LKML-Reference: <1287150604.29097.1513.camel@twins> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5998222f901c..3fe253e6a6e9 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -8498,12 +8498,12 @@ void sched_move_task(struct task_struct *tsk)
8498 if (unlikely(running)) 8498 if (unlikely(running))
8499 tsk->sched_class->put_prev_task(rq, tsk); 8499 tsk->sched_class->put_prev_task(rq, tsk);
8500 8500
8501 set_task_rq(tsk, task_cpu(tsk));
8502
8503#ifdef CONFIG_FAIR_GROUP_SCHED 8501#ifdef CONFIG_FAIR_GROUP_SCHED
8504 if (tsk->sched_class->moved_group) 8502 if (tsk->sched_class->task_move_group)
8505 tsk->sched_class->moved_group(tsk, on_rq); 8503 tsk->sched_class->task_move_group(tsk, on_rq);
8504 else
8506#endif 8505#endif
8506 set_task_rq(tsk, task_cpu(tsk));
8507 8507
8508 if (unlikely(running)) 8508 if (unlikely(running))
8509 tsk->sched_class->set_curr_task(rq); 8509 tsk->sched_class->set_curr_task(rq);