Re: [PATCH v8 03/33] sched/deadline: Record the root domain holding a task's bandwidth

From: Mathieu Desnoyers

Date: Fri Nov 20 2026 - 08:48:54 EST


> Should the root domain check in __sched_setscheduler() also use the
> recorded dl_bw_cpu instead of rq->rd?

Yes. The check is older than this series: v7.4-rc2 has it too. Patch 3
changed dl_task_check_affinity() and sched_dl_overflow(), and left this
one out.

v9 will add dl_task_admit_cpu(). It returns the CPU whose root domain
sched_dl_overflow() charges. __sched_setscheduler() will check the span
of that root domain. A new case, move_asleep_setattr, moves a sleeping
deadline task to another partition. Then it changes the runtime of the
task. Without the fix, sched_setattr() fails with EPERM. With it, the
case passes.

Thanks,

Mathieu

--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com