Re: [PATCH tip] sched/rt: Fix picking RT and DL tasks from empty queue

2014-03-05 Thread Peter Zijlstra
On Tue, Mar 04, 2014 at 07:25:46PM +0400, Kirill Tkhai wrote: > The problems: > > 1)We check for rt_nr_running before call of put_prev_task(). > If previous task is RT, its rt_rq may become throttled > and dequeued after this call. > > In case of p is from rt->rq this just causes picking a task >

[PATCH tip] sched/rt: Fix picking RT and DL tasks from empty queue

2014-03-04 Thread Kirill Tkhai
The problems: 1)We check for rt_nr_running before call of put_prev_task(). If previous task is RT, its rt_rq may become throttled and dequeued after this call. In case of p is from rt->rq this just causes picking a task from throttled queue, but in case of its rt_rq is child we are guaranteed cat