summaryrefslogtreecommitdiffstats
path: root/mm/madvise.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-05-16 21:34:23 -0700
committerIngo Molnar <mingo@kernel.org>2012-05-30 14:02:25 +0200
commit454c79999f7eaedcdf4c15c449e43902980cbdf5 (patch)
tree0da7f5fe6328283a2bf36648bc04e74028d5bfd8 /mm/madvise.c
parent29baa7478ba47d746e3625c91d3b2afbf46b4312 (diff)
downloadlinux-454c79999f7eaedcdf4c15c449e43902980cbdf5.tar.gz
linux-454c79999f7eaedcdf4c15c449e43902980cbdf5.tar.bz2
linux-454c79999f7eaedcdf4c15c449e43902980cbdf5.zip
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. Signed-off-by: Colin Cross <ccross@android.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1337229266-15798-1-git-send-email-ccross@android.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'mm/madvise.c')
0 files changed, 0 insertions, 0 deletions