From bb61c210835db95b0e9fb612a316422e7cc675e3 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Mon, 15 Oct 2007 17:00:02 +0200 Subject: [PATCH] sched: resched task in task_new_fair() to get full child-runs-first semantics make sure the parent is rescheduled. Signed-off-by: Ingo Molnar Signed-off-by: Peter Zijlstra Signed-off-by: Mike Galbraith Reviewed-by: Thomas Gleixner --- kernel/sched_fair.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 67c67a87146e..0990b20fdcf5 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -1191,6 +1191,7 @@ static void task_new_fair(struct rq *rq, struct task_struct *p) se->wait_runtime = -(sched_granularity(cfs_rq) / 2); __enqueue_entity(cfs_rq, se); + resched_task(rq->curr); } #ifdef CONFIG_FAIR_GROUP_SCHED