Re: [PATCH v6 16/37] sched/deadline: Record the root domain holding a task's bandwidth
From: Mathieu Desnoyers
Date: Tue Nov 17 2026 - 09:17:30 EST
> Should __sched_setscheduler() also check the root domain of the recorded
> dl_bw_cpu instead of rq->rd?
Thanks. That EPERM is the baseline's affinity check. The cover letter
lists it under "Not changed". It refuses the call, so nothing is
counted wrongly.
The check also matters when sched_setattr() makes a task a deadline
task during a cpuset move. Patch 21 covers that case ("sched: Make
deadline policy and affinity changes wait for a cpuset attach"). That
task has no CPU recorded yet. So the root domain of the CPU it is on is
the only one the check can use.
Once the task has run on its new CPUs, its parameters can be changed as
usual.
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com