Re: [PATCH 1/6 v3] sched/fair: Set next buddy for preempt short
From: Vincent Guittot
Date: Fri Jun 26 2026 - 04:58:38 EST
On Fri, 26 Jun 2026 at 10:08, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> On Fri, Jun 26, 2026 at 09:02:09AM +0200, Vincent Guittot wrote:
>
> > > But I suppose you want to violate the strict deadline order, but in that
> >
> > yeah, and make sure that next is eligible
> >
> > > case we should still order on slice length. We should not set next when
> > > we already have one that is a shorter slice, no?
> >
> > set_next_buddy() is only called for PREEMPT_WAKEUP_SHORT which is only
> > used when (pse->slice < se->slice) with this patchset
>
> Right, but you can get multiple wakeups, and in that case you want to
> preserve the shortest slice, right?
Fair enough