Re: Doubt about push_dl_task() / find_lock_later_rq()

From: luca abeni
Date: Thu Jan 05 2017 - 07:20:42 EST


On Thu, 5 Jan 2017 12:48:38 +0100
Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:

> On Thu, Jan 05, 2017 at 08:29:23AM +0100, luca abeni wrote:
[...]
> > I was confused by the fact that in some cases I saw
> > rq->dl.earliest_dl.curr != rq->curr->dl.deadline
> >
> > I still do not understand how this can happen (I am not changing
> > tasks affinities), and I am investigating this.
>
>
> I'm having trouble spotting code that does that...

I think I might have found the issue (switched_to_dl() adjusting the
task's deadline without dequeueing/re-enqueueing it)... I am working on
a patch, and I'll send it this afternoon.


Thanks,
Luca