sched: Prevent buddy interactions with throttled entities
authorPaul Turner <pjt@google.com>
Thu, 21 Jul 2011 16:43:37 +0000 (09:43 -0700)
committerIngo Molnar <mingo@elte.hu>
Sun, 14 Aug 2011 10:03:42 +0000 (12:03 +0200)
commit5238cdd3873e67a98b28c1161d65d2a615c320a3
tree6c0e162a8ef9e0eb4d0099b537cfde5138aeddb4
parent64660c864f46202b932b911a69deb09805bdbaf8
sched: Prevent buddy interactions with throttled entities

Buddies allow us to select "on-rq" entities without actually selecting them
from a cfs_rq's rb_tree.  As a result we must ensure that throttled entities
are not falsely nominated as buddies.  The fact that entities are dequeued
within throttle_entity is not sufficient for clearing buddy status as the
nomination may occur after throttling.

Signed-off-by: Paul Turner <pjt@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110721184757.886850167@google.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c