Re: [patch] sched: fix b5d9d734 blunder in task_new_fair()

From: Peter Zijlstra
Date: Tue Nov 24 2009 - 12:35:52 EST


On Tue, 2009-11-24 at 18:07 +0100, Mike Galbraith wrote:
> > if (p->sched_class->task_new) {
> > /* can detect migration through: task_cpu(p) != smp_processor_id() */
>
> What if the parent was migrated before we got here?

Well, the only case it really matters for is the child_runs_first crap,
which is basically broken on SMP anyway, so I don't think we care too
much if we race here.

Unless I missed some detail that is ;-)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/