diff options
author | Kirill Tkhai <[email protected]> | 2014-10-21 20:35:56 +0400 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-10-28 10:46:10 +0100 |
commit | f3a7e1a9c464a32ee186ab91388313c82e7ce018 (patch) | |
tree | 74d90ab7172a01aa653b88570322eb900789a562 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fcd964dda5ece2fa77f78f843bc3455348787282 (diff) |
sched/dl: Fix preemption checks
1) switched_to_dl() check is wrong. We reschedule only
if rq->curr is deadline task, and we do not reschedule
if it's a lower priority task. But we must always
preempt a task of other classes.
2) dl_task_timer():
Policy does not change in case of priority inheritance.
rt_mutex_setprio() changes prio, while policy remains old.
So we lose some balancing logic in dl_task_timer() and
switched_to_dl() when we check policy instead of priority. Boosted
task may be rq->curr.
(I didn't change switched_from_dl() because no check is necessary
there at all).
I've looked at this place(switched_to_dl) several times and even fixed
this function, but found just now... I suppose some performance tests
may work better after this.
Signed-off-by: Kirill Tkhai <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Juri Lelli <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/1413909356.19914.128.camel@tkhai
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions