Re: pick_next_task() picking the wrong task [v4.9.163]

2019-03-27 Thread Radu Rendec
On Sat, 2019-03-23 at 11:15 +0100, Peter Zijlstra wrote: > On Fri, Mar 22, 2019 at 05:57:59PM -0400, Radu Rendec wrote: > > Hi Everyone, > > > > I believe I'm seeing a weird behavior of pick_next_task() where it > > chooses a lower priority task over a higher priority one. The scheduling > >

Re: pick_next_task() picking the wrong task [v4.9.163]

2019-03-24 Thread Radu Rendec
On Sat, 2019-03-23 at 11:15 +0100, Peter Zijlstra wrote: > On Fri, Mar 22, 2019 at 05:57:59PM -0400, Radu Rendec wrote: > > Hi Everyone, > > > > I believe I'm seeing a weird behavior of pick_next_task() where it > > chooses a lower priority task over a higher priority one. The scheduling > >

Re: pick_next_task() picking the wrong task [v4.9.163]

2019-03-23 Thread Peter Zijlstra
On Fri, Mar 22, 2019 at 05:57:59PM -0400, Radu Rendec wrote: > Hi Everyone, > > I believe I'm seeing a weird behavior of pick_next_task() where it > chooses a lower priority task over a higher priority one. The scheduling > class of the two tasks is also different ('fair' vs. 'rt'). The culprit >

pick_next_task() picking the wrong task [v4.9.163]

2019-03-22 Thread Radu Rendec
Hi Everyone, I believe I'm seeing a weird behavior of pick_next_task() where it chooses a lower priority task over a higher priority one. The scheduling class of the two tasks is also different ('fair' vs. 'rt'). The culprit seems to be the optimization at the beginning of the function, where