Re: [PATCH v11 17/43] cgroup/cpuset: Refuse to take a deadline task out of its root domain
From: Mathieu Desnoyers
Date: Fri Nov 27 2026 - 08:49:06 EST
> Should pending also be populated when root->partition_root_state is
> PRS_ISOLATED (or via is_partition_valid(root))?
Yes. v12 will count the CPUs of an isolated partition root as pending
too. This alone would not cover your example, though. The second loop
checks the cpusets of @part, the child that the write makes a
partition root, and v11 passes NULL there. In v12, that loop will pass
the same pending CPUs when the root is isolated. The valid children of
an isolated root are isolated too, so the rebuild also gives their
CPUs to the default root domain. The v11 cover listed this as a known
limit. The v12 cover will drop it.
> Does dl_tasks_keep_without() (and dl_tasks_keep_root_domain() below) walk
> the cpuset hierarchy and iterate every task in affected cpusets even when
> no deadline tasks hold bandwidth or admission control is disabled?
It does walk them. In v12, dl_tasks_keep_cpus() will skip the walk of
the tasks when no task holds a deadline bandwidth, or without admission
control. dl_task_keeps_root_domain() accepts any mask then. The walk of the
cpusets stays. Each cpuset costs a mask computation.
Thanks,
Mathieu