Re: [PATCH 2/6] sched_ext: Start schedulers with consistent p->scx.slice values

From: David Vernet
Date: Thu Oct 10 2024 - 14:01:22 EST


On Wed, Oct 09, 2024 at 11:40:58AM -1000, Tejun Heo wrote:
> The disable path caps p->scx.slice to SCX_SLICE_DFL. As the field is already
> being ignored at this stage during disable, the only effect this has is that
> when the next BPF scheduler is loaded, it won't see unreasonable left-over
> slices. Ultimately, this shouldn't matter but it's better to start in a
> known state. Drop p->scx.slice capping from the disable path and instead
> reset it to SCX_SLICE_DFL in the enable path.
>
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>

Acked-by: David Vernet <void@xxxxxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature