From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADC8D15855E for ; Mon, 17 Nov 2025 09:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763371688; cv=none; b=AmWK9e3RPp8awBSOTZDsQZPJkTDNrMybnKCuypaUvaW8P4zK06lTvTgQ7r+Y1nTEkpCB49RpN7Ezprcw0ZkDRHPDE/TOF0r7PQBpyADh1qMgXpbakz6dwu6pk7TdycCJbTgcNg2AY4R1CGIFgYBK7aQCjIr5G3m0fdbQnoZpVeo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763371688; c=relaxed/simple; bh=I3oLimOI2ReriwXfIzPB8nDlG9NSEGIZ+rTNux9BPI0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=p78PpY9Rt/6JHJx2mELJP9lh0yCDNbwINcq9fTbSRrHW4Dnjm362XNIpxKXEFZxZN9nab4XAyJQlh9xizQh1sLg19fb4WxDXdB3j/9KAjQ0riu3eo3h7CBnkOGrey9hu2ZyxMP7GWEpwIo07daRh20j86gl7XQK+cNosXMU8C1Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=h9m8QGYp; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="h9m8QGYp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1763371683; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1wqytlb1RkYRH8mf+LXP3oX2mWYegVqS+8o+rjArXpU=; b=h9m8QGYpIs99OYZLFfmRZBFsvlSCszlOVnjNvZlSPstHekvRXFdcMFOfKQ7bc6yCDg4sJ1 Mps0qfiYqQi9lTLP3eQ1ssnzsHEcQx10Wf/hM4z1yo76Sk9+uXetKInMwaiRpi+SvKsCYa Eruk+OBsZPgTl5yw08/Nv0Cl4IsRCXw= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-639-fQe9Q6PINdisvjIPI-KM3A-1; Mon, 17 Nov 2025 04:27:58 -0500 X-MC-Unique: fQe9Q6PINdisvjIPI-KM3A-1 X-Mimecast-MFC-AGG-ID: fQe9Q6PINdisvjIPI-KM3A_1763371676 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A4C06180035D; Mon, 17 Nov 2025 09:27:55 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.72.112.46]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id F3EF51800451; Mon, 17 Nov 2025 09:27:44 +0000 (UTC) From: Pingfan Liu To: Cc: Pingfan Liu , Waiman Long , Chen Ridong , Peter Zijlstra , Juri Lelli , Pierre Gondois , Ingo Molnar , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , Tejun Heo , Johannes Weiner , mkoutny@suse.com, linux-kernel@vger.kernel.org Subject: [PATCHv6 0/2] sched/deadline: Walk up cpuset hierarchy to decide root domain when hot-unplug Date: Mon, 17 Nov 2025 17:27:29 +0800 Message-ID: <20251117092732.16419-1-piliu@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 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