[PATCHv7 0/2] sched/deadline: Walk up cpuset hierarchy to decide root domain when hot-unplug

Pingfan Liu posted 2 patches 1 week, 5 days ago
include/linux/cpuset.h  |  9 ++++++-
kernel/cgroup/cpuset.c  | 51 ++++++++++++++++++++++++++------------
kernel/sched/deadline.c | 54 ++++++++++++++++++++++++++++++++++++-----
3 files changed, 92 insertions(+), 22 deletions(-)
[PATCHv7 0/2] sched/deadline: Walk up cpuset hierarchy to decide root domain when hot-unplug
Posted by Pingfan Liu 1 week, 5 days ago
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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].
  
v6 -> v7:
  Provide cpuset_cpus_allowed_locked() for !CONFIG_CPUSETS

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  |  9 ++++++-
 kernel/cgroup/cpuset.c  | 51 ++++++++++++++++++++++++++------------
 kernel/sched/deadline.c | 54 ++++++++++++++++++++++++++++++++++++-----
 3 files changed, 92 insertions(+), 22 deletions(-)

-- 
2.49.0
Re: [PATCHv7 0/2] sched/deadline: Walk up cpuset hierarchy to decide root domain when hot-unplug
Posted by Tejun Heo 1 week, 4 days ago
On Wed, Nov 19, 2025 at 05:55:23PM +0800, Pingfan Liu wrote:
> Pingfan Liu (2):
>   cgroup/cpuset: Introduce cpuset_cpus_allowed_locked()
>   sched/deadline: Walk up cpuset hierarchy to decide root domain when
>     hot-unplug

Applied 1-2 to cgroup/for-6.19.

Thanks.

--
tejun