[PATCHv6 0/2] sched/deadline: Walk up cpuset hierarchy to decide root domain when hot-unplug
From: Pingfan Liu
Date: Mon Nov 17 2025 - 04:33:42 EST
This series fixes a deadline bug triggered during CPU hot-removal, which
prevents the CPU from being removed. For details, please refer to the
commit log in [2/2]. In addition, [1/2] exposes the
cpuset_cpus_allowed_locked() interface for use by [2/2].
v5 -> v6:
Introduce the cpuset_cpus_allowed_locked() variant (thanks to Waiman)
Use local_cpu_mask_dl to avoid cpumask allocation on the stack (thanks to Juri and Waiman)
v4 -> v5:
Move the housekeeping part into deadline.c (Thanks for Waiman's suggestion)
Use cpuset_cpus_allowed() instead of introducing new cpuset function (Thanks for Ridong's suggestion)
Pingfan Liu (2):
cgroup/cpuset: Introduce cpuset_cpus_allowed_locked()
sched/deadline: Walk up cpuset hierarchy to decide root domain when
hot-unplug
include/linux/cpuset.h | 1 +
kernel/cgroup/cpuset.c | 51 ++++++++++++++++++++++++++------------
kernel/sched/deadline.c | 54 ++++++++++++++++++++++++++++++++++++-----
3 files changed, 85 insertions(+), 21 deletions(-)
--
2.49.0