diff options
author | Colin Cross <ccross@android.com> | 2012-05-16 17:22:23 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2012-05-18 17:03:09 -0700 |
commit | 2eec7c9f3f20cf720ac8a97e23a2954132c025c9 (patch) | |
tree | 351a075001917aa6ba44bcb0de04196c55d914d9 /kernel/workqueue_sched.h | |
parent | 1dd2d69ca040ba6685c0f78b11f6aaa0f223d6cc (diff) |
sched/rt: fix SCHED_RR across cgroups
task_tick_rt has an optimization to only reschedule SCHED_RR tasks
if they were the only element on their rq. However, with cgroups
a SCHED_RR task could be the only element on its per-cgroup rq but
still be competing with other SCHED_RR tasks in its parent's
cgroup. In this case, the SCHED_RR task in the child cgroup would
never yield at the end of its timeslice. If the child cgroup
rt_runtime_us was the same as the parent cgroup rt_runtime_us,
the task in the parent cgroup would starve completely.
Modify task_tick_rt to check that the task is the only task on its
rq, and that the each of the scheduling entities of its ancestors
is also the only entity on its rq.
Change-Id: I4f5b118517f85db3570923eb2f5e4c933ece9247
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'kernel/workqueue_sched.h')
0 files changed, 0 insertions, 0 deletions