sched: Fix bug in SCHED_IDLE interaction with group scheduling
authorPaul Turner <pjt@google.com>
Sat, 11 Jul 2009 00:05:16 +0000 (17:05 -0700)
committerIngo Molnar <mingo@elte.hu>
Sat, 11 Jul 2009 08:00:09 +0000 (10:00 +0200)
commitd07387b490b1c43bfcb9f3900faf96f2dafb2630
tree97893ceda1e7262df981e87374f2553a6a8dba34
parentc20b08e3986c2dbfa6df1e880bf4f7159994d199
sched: Fix bug in SCHED_IDLE interaction with group scheduling

One of the isolation modifications for SCHED_IDLE is the
unitization of sleeper credit.  However the check for this
assumes that the sched_entity we're placing always belongs to a
task.

This is potentially not true with group scheduling and leaves
us rummaging randomly when we try to pull the policy.

Signed-off-by: Paul Turner <pjt@google.com>
Cc: peterz@infradead.org
LKML-Reference: <alpine.DEB.1.00.0907101649570.29914@kitami.corp.google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c