sched: Revert 738d2be, simplify set_task_cpu()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 22 Dec 2009 14:43:19 +0000 (15:43 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 23 Dec 2009 09:04:10 +0000 (10:04 +0100)
commit0c69774e6ce94364cfaa8bdeb18061edc414bc5a
treeb83fdb55af2f9b9dddcab4a273739ebe1c810594
parentf7b84a6ba7eaeba4e1df8feddca1473a7db369a5
sched: Revert 738d2be, simplify set_task_cpu()

Effectively reverts 738d2be4301007f054541c5c4bf7fb6a361c9b3a.

As demonstrated by Eric, we really need to call __set_task_cpu()
early in the fork() path to properly initialize the various task
state -- specifically the cgroup state through set_task_rq().

[ we could probably fix this by explicitly calling
  __set_task_cpu() from   sched_fork(), but lets try that for the
  next cycle and simply revert to the old behaviour for now. ]

Reported-by: Eric Paris <eparis@redhat.com>
Tested-by: Eric Paris <eparis@redhat.com>,
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: efault@gmx.de
LKML-Reference: <1261492999.4937.36.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c