From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 F09F329A1; Tue, 17 Feb 2026 20:51:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771361484; cv=none; b=DyTJPP6b/HclfKtBE+t+oP1M0x124Qv8KRAdTWab6iRfxd6guF9izs5GG68QpAKo/wmRKdhUOADFcirLPt5R3qFg0m0DIYgPun93/xdf7kdf1tFOuGsue5Tss4IYr6v7pkXlu0TUiK1MQ7qEefRCmHiaB98AdwxrkrEnI/sC9/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771361484; c=relaxed/simple; bh=GkhAcBEW6+rmux7skzfGaLZR87NLaS+AXGmpBZiNXaU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GbCqemFEM6aNbV1ht0YtAaaplehCE5rjjYJrcZ8MVUBSh6osdsC2eSkvZiHP7AaENoRR09I9pW+oisHtQlBC06qI4t6pf80s3TYce6K/yBFhoZ3bMhluZhUneoXbbjClFIT67gjXLNTfe7J9CF5uflam/pZsEj9LGrTE/eOSSuY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=URzkAKtP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="URzkAKtP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AFF8C4CEF7; Tue, 17 Feb 2026 20:51:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771361483; bh=GkhAcBEW6+rmux7skzfGaLZR87NLaS+AXGmpBZiNXaU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=URzkAKtPe/E5h+IeH+B9GCvM53rCxUiLQOMlkYVzibPzqYoxCafVyWvgnWPQ+jA+L QMNufoAQmbsYjr3vcHPtiJKvZBsH2wUqk/1KNupa1RS2HLM4ZNZNmzbi4eG0rYDnYu qmv8AxJBaLJ1gxkraDkjd/lOMlVPT8CqekJLoT74= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Waiman Long , Tejun Heo , Chen Ridong Subject: [PATCH 6.18 29/43] cpuset: Fix missing adaptation for cpuset_is_populated Date: Tue, 17 Feb 2026 21:32:09 +0100 Message-ID: <20260217200007.587713721@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260217200006.470920131@linuxfoundation.org> References: <20260217200006.470920131@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chen Ridong Commit b1bcaed1e39a ("cpuset: Treat cpusets in attaching as populated") was backported to the long‑term support (LTS) branches. However, because commit d5cf4d34a333 ("cgroup/cpuset: Don't track # of local child partitions") was not backported, a corresponding adaptation to the backported code is still required. To ensure correct behavior, replace cgroup_is_populated with cpuset_is_populated in the partition_is_populated function. Cc: stable@vger.kernel.org # 6.1+ Fixes: b1bcaed1e39a ("cpuset: Treat cpusets in attaching as populated") Cc: Waiman Long Cc: Tejun Heo Signed-off-by: Chen Ridong Signed-off-by: Greg Kroah-Hartman --- kernel/cgroup/cpuset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -385,7 +385,7 @@ static inline bool partition_is_populate cs->attach_in_progress) return true; if (!excluded_child && !cs->nr_subparts) - return cgroup_is_populated(cs->css.cgroup); + return cpuset_is_populated(cs); rcu_read_lock(); cpuset_for_each_descendant_pre(cp, pos_css, cs) {