From: Ingo Molnar Date: Mon, 15 Oct 2007 15:00:02 +0000 (+0200) Subject: sched: resched task in task_new_fair() X-Git-Tag: v2.6.24-rc1~1289^2~138 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb61c210835db95b0e9fb612a316422e7cc675e3;p=linux-2.6 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 --- diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 67c67a8714..0990b20fdc 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