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 2B68234EEF4; Wed, 24 Dec 2025 13:48:14 +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=1766584096; cv=none; b=Wupe6AyPB2ZgnRzpExJeP/kpE4q8Nq2dvwmBa82+ATIGN0SOofkkAkjoxpDShX9yWXhancpRaO5ChZtGEtYlM01vrD0jhaHSbVhioEn5wAgyRO3rlHvlTjSARwMiOSkXwBpP2d+bjkiTOQVMko+gMMJtzmjvpEX0Fb2kk/aLm6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766584096; c=relaxed/simple; bh=g07phPGG/Oy0m05V60X9C22vXitOxGspdZ/J2kDb5tw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ao2taWAorJy/U2xxq3oP7+R54tBHFvwU3LYgCQdXhqklYx+DX1xvkfxVPWVAIvW7dTSnA1tKCEcZgSv/ugsEj4gYVGjot1jhvsD07wPVc8l8lFErq9oaXclD9xEyamdu4qQFtYmNoUaizfVZIs2ZGEMRsxcd6XeqD0AnNDTZPYk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DzQOLmNe; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DzQOLmNe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4F4CC4CEFB; Wed, 24 Dec 2025 13:48:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1766584094; bh=g07phPGG/Oy0m05V60X9C22vXitOxGspdZ/J2kDb5tw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DzQOLmNe2ElVs26zpy4ezuaRwXGVH+R3stciRsBWJLK3UC5w34inc2T1/EwdC9lFE fyFiuQahU2FvodRmFXZ9ijmEeJTHKF0Yrj/Q6DGeG2newSS1uUJ4GvRqcz4p9Uy79A KRJjyRKu7Sah7jkELphRWphjVnGuhoJZqN6v/aJID406Re2uCtndE0NAvaionA7PgN ySgdtzsXpdLvA8Pn72STWr5Ug6rp7Tvxn1Wpf/7S1CYDrfJGoNZ0TJdyYvRfZx8ZLu lXqXo59WpBnc9ZBjGMDalkqCjnlSnb/30eoplFozEe8MJ3ixwjIIk2oD7Xyth3S1Uu 5PsQG1Bnax0Sg== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , =?UTF-8?q?Michal=20Koutn=C3=BD?= , Andrew Morton , Bjorn Helgaas , Catalin Marinas , Chen Ridong , Danilo Krummrich , "David S . Miller" , Eric Dumazet , Gabriele Monaco , Greg Kroah-Hartman , Ingo Molnar , Jakub Kicinski , Jens Axboe , Johannes Weiner , Lai Jiangshan , Marco Crivellari , Michal Hocko , Muchun Song , Paolo Abeni , Peter Zijlstra , Phil Auld , "Rafael J . Wysocki" , Roman Gushchin , Shakeel Butt , Simon Horman , Tejun Heo , Thomas Gleixner , Vlastimil Babka , Waiman Long , Will Deacon , cgroups@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-block@vger.kernel.org, linux-mm@kvack.org, linux-pci@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 19/33] cpuset: Propagate cpuset isolation update to timers through housekeeping Date: Wed, 24 Dec 2025 14:45:06 +0100 Message-ID: <20251224134520.33231-20-frederic@kernel.org> X-Mailer: git-send-email 2.51.1 In-Reply-To: <20251224134520.33231-1-frederic@kernel.org> References: <20251224134520.33231-1-frederic@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Until now, cpuset would propagate isolated partition changes to timer migration so that unbound timers don't get migrated to isolated CPUs. Since housekeeping now centralizes, synchronize and propagates isolation cpumask changes, perform the work from that subsystem for consolidation and consistency purposes. Signed-off-by: Frederic Weisbecker --- kernel/cgroup/cpuset.c | 3 --- kernel/sched/isolation.c | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index a492d23dd622..25ac6c98113c 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -1487,9 +1487,6 @@ static void update_isolation_cpumasks(void) ret = housekeeping_update(isolated_cpus, HK_TYPE_DOMAIN); WARN_ON_ONCE(ret < 0); - ret = tmigr_isolated_exclude_cpumask(isolated_cpus); - WARN_ON_ONCE(ret < 0); - isolated_cpus_updating = false; } diff --git a/kernel/sched/isolation.c b/kernel/sched/isolation.c index d224bca299ed..84a257d05918 100644 --- a/kernel/sched/isolation.c +++ b/kernel/sched/isolation.c @@ -150,7 +150,12 @@ int housekeeping_update(struct cpumask *isol_mask, enum hk_type type) pci_probe_flush_workqueue(); mem_cgroup_flush_workqueue(); vmstat_flush_workqueue(); + err = workqueue_unbound_housekeeping_update(housekeeping_cpumask(type)); + WARN_ON_ONCE(err < 0); + + err = tmigr_isolated_exclude_cpumask(isol_mask); + WARN_ON_ONCE(err < 0); kfree(old); -- 2.51.1