From: Peter Zijlstra Date: Mon, 15 Feb 2010 13:45:54 +0000 (+0100) Subject: sched: Fix race between ttwu() and task_rq_lock() X-Git-Tag: v2.6.34-rc1~261^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0970d2992dfd7d5ec2c787417cf464f01eeaf42a;p=pandora-kernel.git sched: Fix race between ttwu() and task_rq_lock() Thomas found that due to ttwu() changing a task's cpu without holding the rq->lock, task_rq_lock() might end up locking the wrong rq. Avoid this by serializing against TASK_WAKING. Reported-by: Thomas Gleixner Signed-off-by: Peter Zijlstra LKML-Reference: <1266241712.15770.420.camel@laptop> Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed