Re: [RFC] sched/dl: Fix preemption checks

2014-10-22 Thread Juri Lelli
Hi Kirill, On 21/10/14 17:35, Kirill Tkhai wrote: > > 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

Re: [RFC] sched/dl: Fix preemption checks

2014-10-22 Thread Juri Lelli
Hi Kirill, On 21/10/14 17:35, Kirill Tkhai wrote: 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

[RFC] sched/dl: Fix preemption checks

2014-10-21 Thread Kirill Tkhai
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

[RFC] sched/dl: Fix preemption checks

2014-10-21 Thread Kirill Tkhai
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