sched: Fix 32bit race
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 11 Jul 2011 14:28:50 +0000 (16:28 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jul 2011 16:54:02 +0000 (09:54 -0700)
Commit 3fe1698b7fe0 ("sched: Deal with non-atomic min_vruntime reads
on 32bit") forgot to initialize min_vruntime_copy which could lead to
an infinite while loop in task_waking_fair() under some circumstances
(early boot, lucky timing).

[ This bug was also reported by others that blamed it on the RCU
  initialization problems ]

Reported-and-tested-by: Bruno Wolff III <bruno@wolff.to>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

No differences found