From: Peter Zijlstra Date: Tue, 15 Sep 2009 12:43:03 +0000 (+0200) Subject: sched: Add TASK_WAKING X-Git-Tag: v2.6.32-rc1~652^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9c8431185d6c406887190519f6dbdd112641686;p=pandora-kernel.git sched: Add TASK_WAKING We're going to want to drop rq->lock in try_to_wake_up() for a longer period of time, however we also want to deal with concurrent waking of the same task, which is currently handled by holding rq->lock. So introduce a new TASK state, namely TASK_WAKING, which indicates someone is already waking the task (other wakers will fail p->state & state). We also keep preemption disabled over the whole ttwu(). Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed