Re: [PATCH 1/6 v3] sched/fair: Set next buddy for preempt short

From: Peter Zijlstra

Date: Fri Jun 26 2026 - 04:09:17 EST


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?