Re: [RFC][PATCH 2/6] sched: Employ sched_change guards
From: Tejun Heo
Date: Wed Oct 30 2024 - 17:10:03 EST
On Wed, Oct 30, 2024 at 10:58:40AM -1000, Tejun Heo wrote:
> On Wed, Oct 30, 2024 at 04:12:57PM +0100, Peter Zijlstra wrote:
> --- a/kernel/sched/ext.c
> +++ b/kernel/sched/ext.c
> @@ -4496,6 +4496,8 @@ static void scx_ops_disable_workfn(struc
> const struct sched_class *new_class =
> __setscheduler_class(p->policy, p->prio);
>
> + update_rq_clock(task_rq(p));
> +
Oh, this probably should be paired with DEQUEUE_NOCLOCK.
Thanks.
--
tejun