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 CC72F3451C8 for ; Wed, 19 Nov 2025 09:55:54 +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=1763546156; cv=none; b=QXj10YTX+Mi+Je6lupKNP2z9OQpANzRJZ/8Sabdwy2GvTYMBdrbvqJ/Gy8l9cuLzfRLJsh808lz7EOONP5kFutRfwxAA4qzu2+jtSQm+I1jElnBa2nY9fRRJI+GAfgu+Ffu9L+jQgk2BXy89L8Np2fCvjTpUQORtTF/FzalSn4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763546156; c=relaxed/simple; bh=U3SVK0bBiHhQB+1TpNXXpa7s73u2ugqWEw1Gdz6Szzs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ufi0qdVp2swezWa4kKN4/zUuf7/LiMj7TJHLrczXwoAFXJexiz2KBtKMYHiaeUEJXpa2YHJQFX7vCNx+smPyhcI9/tVQSECPfSA+eRI6IzCl+0ImZkLDqvWMwb3dW2roqN7cWFSmOCUT5PvHWO6cTIf45wBzQItZN2/lAgk/H20= 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=fxWedAen; 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="fxWedAen" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1763546153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=NkgIx1hnKmnHiEnepJfrXwPQRSNZ7js5UdiPGzDQPs8=; b=fxWedAenyO8rchZ8SJPkyLsNphi7YpsQXR1Y0b8tDf22PyGwEbAGIlgnhkNUNEaDrpZsck fxgkEdm+Qrr534+F1Pr0P5sZUWGVeZe+uk7GvSNAK6pzsll7G0bJtJcMur+s8+jom5xXGy DmKGfO1N2TgjxUlGqeAh+ey6kTCeMFE= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-433-tSN6ggS4Moeo0_CAXE73GQ-1; Wed, 19 Nov 2025 04:55:49 -0500 X-MC-Unique: tSN6ggS4Moeo0_CAXE73GQ-1 X-Mimecast-MFC-AGG-ID: tSN6ggS4Moeo0_CAXE73GQ_1763546148 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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E307118AB42A; Wed, 19 Nov 2025 09:55:46 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.72.112.57]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 257FD1800451; Wed, 19 Nov 2025 09:55:35 +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: [PATCHv7 0/2] sched/deadline: Walk up cpuset hierarchy to decide root domain when hot-unplug Date: Wed, 19 Nov 2025 17:55:23 +0800 Message-ID: <20251119095525.12019-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-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 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