Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-08-01 Thread Dietmar Eggemann
On 7/31/19 9:20 PM, luca abeni wrote: > On Wed, 31 Jul 2019 18:32:47 +0100 > Dietmar Eggemann wrote: > [...] >> static void dequeue_dl_entity(struct sched_dl_entity *dl_se) >> { >> +if (!on_dl_rq(dl_se)) >> +return; > > Why allow double dequeue i

Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-31 Thread luca abeni
On Wed, 31 Jul 2019 18:32:47 +0100 Dietmar Eggemann wrote: [...] > static void dequeue_dl_entity(struct sched_dl_entity *dl_se) > { > +if (!on_dl_rq(dl_se)) > +return; > >>> > >>> Why allow double dequeue instead of WARN? > >> > >> As I was saying

Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-31 Thread Dietmar Eggemann
On 7/30/19 9:21 AM, Peter Zijlstra wrote: > On Tue, Jul 30, 2019 at 08:41:15AM +0200, Juri Lelli wrote: >> On 29/07/19 18:49, Peter Zijlstra wrote: >>> On Fri, Jul 26, 2019 at 09:27:55AM +0100, Dietmar Eggemann wrote: Remove BUG_ON() in __enqueue_dl_entity() since there is already one in

Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-30 Thread Peter Zijlstra
On Tue, Jul 30, 2019 at 08:41:15AM +0200, Juri Lelli wrote: > On 29/07/19 18:49, Peter Zijlstra wrote: > > On Fri, Jul 26, 2019 at 09:27:55AM +0100, Dietmar Eggemann wrote: > > > Remove BUG_ON() in __enqueue_dl_entity() since there is already one in > > > enqueue_dl_entity(). > > > > > > Move the

Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-29 Thread Juri Lelli
On 29/07/19 18:49, Peter Zijlstra wrote: > On Fri, Jul 26, 2019 at 09:27:55AM +0100, Dietmar Eggemann wrote: > > Remove BUG_ON() in __enqueue_dl_entity() since there is already one in > > enqueue_dl_entity(). > > > > Move the check that the dl_se is not on the dl_rq from > > __dequeue_dl_entity()

Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-29 Thread Peter Zijlstra
On Fri, Jul 26, 2019 at 09:27:55AM +0100, Dietmar Eggemann wrote: > Remove BUG_ON() in __enqueue_dl_entity() since there is already one in > enqueue_dl_entity(). > > Move the check that the dl_se is not on the dl_rq from > __dequeue_dl_entity() to dequeue_dl_entity() to align with the enqueue > si

Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-26 Thread Valentin Schneider
On 26/07/2019 10:20, Juri Lelli wrote: >> Any idea why a similar error leads to a BUG_ON() in the enqueue path but >> only a silent return on the dequeue path? I would expect the handling to be >> almost identical. >> > > Task could have already been dequeued by update_curr_dl()->throttle > call

Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-26 Thread Juri Lelli
Hi, On 26/07/19 09:37, Valentin Schneider wrote: > On 26/07/2019 09:27, Dietmar Eggemann wrote: > > Remove BUG_ON() in __enqueue_dl_entity() since there is already one in > > enqueue_dl_entity(). > > > > Move the check that the dl_se is not on the dl_rq from > > __dequeue_dl_entity() to dequeue_d

Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-26 Thread Qais Yousef
On 07/26/19 09:37, Valentin Schneider wrote: > On 26/07/2019 09:27, Dietmar Eggemann wrote: > > Remove BUG_ON() in __enqueue_dl_entity() since there is already one in > > enqueue_dl_entity(). > > > > Move the check that the dl_se is not on the dl_rq from > > __dequeue_dl_entity() to dequeue_dl_ent

Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-26 Thread Valentin Schneider
On 26/07/2019 09:27, Dietmar Eggemann wrote: > Remove BUG_ON() in __enqueue_dl_entity() since there is already one in > enqueue_dl_entity(). > > Move the check that the dl_se is not on the dl_rq from > __dequeue_dl_entity() to dequeue_dl_entity() to align with the enqueue > side and use the on_dl_

[PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-26 Thread Dietmar Eggemann
Remove BUG_ON() in __enqueue_dl_entity() since there is already one in enqueue_dl_entity(). Move the check that the dl_se is not on the dl_rq from __dequeue_dl_entity() to dequeue_dl_entity() to align with the enqueue side and use the on_dl_rq() helper function. Signed-off-by: Dietmar Eggemann -