* Ingo Molnar <mingo@elte.hu> wrote:a quick first stab like the one below does not appear to solve the problem. Ingo -------------------> Subject: sched: group scheduler SMP migration fix From: Ingo Molnar <mingo@elte.hu> group scheduler SMP migration fix. Signed-off-by: Ingo Molnar <mingo@elte.hu> --- kernel/sched.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) Index: linux/kernel/sched.c =================================================================== --- linux.orig/kernel/sched.c +++ linux/kernel/sched.c @@ -1039,7 +1039,8 @@ void set_task_cpu(struct task_struct *p, { int old_cpu = task_cpu(p); struct rq *old_rq = cpu_rq(old_cpu), *new_rq = cpu_rq(new_cpu); - u64 clock_offset; + struct sched_entity *se; + u64 clock_offset, voffset; clock_offset = old_rq->clock - new_rq->clock; @@ -1051,7 +1052,11 @@ void set_task_cpu(struct task_struct *p, if (p->se.block_start) p->se.block_start -= clock_offset; #endif - p->se.vruntime -= old_rq->cfs.min_vruntime - new_rq->cfs.min_vruntime; + + se = &p->se; + voffset = old_rq->cfs.min_vruntime - new_rq->cfs.min_vruntime; + for_each_sched_entity(se) + se->vruntime -= voffset; __set_task_cpu(p, new_cpu); } -
| Jeff Garzik | [PATCH 1/9] irq-remove: core |
| Jamie Lokier | Re: POHMELFS high performance network filesystem. Transactions, failover, performa... |
| Dave Young | Re: 2.6.24-rc3-mm1 |
| Willy Tarreau | Re: From 2.4 to 2.6 to 2.7? |
git: | |
| Dan Miner | Compilation speeds (was Re: No patchlevel 3.} |
| Ian Jackson | RFD: comp.os.linux split |
| X X | X11 GIf viewer somewhere? |
| root | Broken pipe when using reboot/halt, etc. |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
