mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
sched: fix sched_fork()
fix sched_fork(): large latencies at new task creation time because the ->vruntime was not fixed up cross-CPU, if the parent got migrated after the child's CPU got set up. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
b8487b9241
commit
02e4bac2a5
1 changed files with 1 additions and 1 deletions
|
@ -1657,7 +1657,7 @@ void sched_fork(struct task_struct *p, int clone_flags)
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
cpu = sched_balance_self(cpu, SD_BALANCE_FORK);
|
cpu = sched_balance_self(cpu, SD_BALANCE_FORK);
|
||||||
#endif
|
#endif
|
||||||
__set_task_cpu(p, cpu);
|
set_task_cpu(p, cpu);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make sure we do not leak PI boosting priority to the child:
|
* Make sure we do not leak PI boosting priority to the child:
|
||||||
|
|
Loading…
Reference in a new issue