From: Andrew Morton Date: Sat, 19 Sep 2009 18:55:44 +0000 (-0700) Subject: sched: Fix raciness in runqueue_is_locked() X-Git-Tag: v2.6.32-rc1~614^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89f19f04dc72363d912fd007a399cb10310eff6e;p=pandora-kernel.git sched: Fix raciness in runqueue_is_locked() runqueue_is_locked() is unavoidably racy due to a poor interface design. It does cpu = get_cpu() ret = some_perpcu_thing(cpu); put_cpu(cpu); return ret; Its return value is unreliable. Fix. Signed-off-by: Andrew Morton Acked-by: Steven Rostedt Cc: Peter Zijlstra LKML-Reference: <200909191855.n8JItiko022148@imap1.linux-foundation.org> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed