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 F198622DFA3 for ; Mon, 9 Jun 2025 23:38:10 +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=1749512291; cv=none; b=FTTyxoBWz3jrZQVmiBEwQOkw09s7s2gnVQyY/Te/HMpJDmwbdlcBsnac+Hi1QO1rFuCVz7tIxk6FN4SQh9qEUoitV3auwtzm0FySDsVm4pzVwiPqufN1jXRiB1A6z9AC+c1Iv9u8K2lEYVg+/iCZE+mSMmis/uZbWFIiwHZLDsI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749512291; c=relaxed/simple; bh=M5KQPFnkm//gkulSnG2AhwaFd1wSxfqTmDwmU4SQses=; h=Date:To:From:Subject:Message-Id; b=cFz5xxECCEMMvz2/PNGWJBR/C8GbP5L3oDGwE95g45YrZSJs54DGSkTlPW8hLkFYMN3OH3wyWDSr3G/sV6vej2OCz2DVcioQN/SzLFwWcgP8FMnGsCOXGQ5wAZ5J4Fi0zyruD8HfmM9QJV1T3d5y/69IzS7eaB2H/F6xl7rA/VQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=OG6Is968; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="OG6Is968" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EAF1C4CEEB; Mon, 9 Jun 2025 23:38:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1749512290; bh=M5KQPFnkm//gkulSnG2AhwaFd1wSxfqTmDwmU4SQses=; h=Date:To:From:Subject:From; b=OG6Is968DW9BuQFnaACTJsmawhzTTt5OhYMw7yYUCz3or9JczlyJnsvxbTMLvHuP7 cQwSvDXFfWbCfCqO2V23WeujsKoi11pJOsedgVQBEHxEkkUUxjcKG2UGWVg7Y6hpa9 jCqFAgQKqJM6Isa89sKzpGTX9MLHKFRxe5CQObig= Date: Mon, 09 Jun 2025 16:38:09 -0700 To: mm-commits@vger.kernel.org,vbabka@suse.cz,rakie.kim@sk.com,joshua.hahnjy@gmail.com,Jonathan.Cameron@huawei.com,harry.yoo@oracle.com,david@redhat.com,42.hyeyoo@gmail.com,osalvador@suse.de,akpm@linux-foundation.org From: Andrew Morton Subject: + kernelcpuset-use-node-notifier-instead-of-memory-notifier.patch added to mm-new branch Message-Id: <20250609233810.6EAF1C4CEEB@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: kernel,cpuset: use node-notifier instead of memory-notifier has been added to the -mm mm-new branch. Its filename is kernelcpuset-use-node-notifier-instead-of-memory-notifier.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/kernelcpuset-use-node-notifier-instead-of-memory-notifier.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Oscar Salvador Subject: kernel,cpuset: use node-notifier instead of memory-notifier Date: Mon, 9 Jun 2025 11:21:45 +0200 cpuset is only concerned when a numa node changes its memory state, as it needs to know the current numa nodes with memory to keep an updated mems_allowed mask. So stop using the memory notifier and use the new numa node notifer instead. Link: https://lkml.kernel.org/r/20250609092149.312114-9-osalvador@suse.de Signed-off-by: Oscar Salvador Reviewed-by: Jonathan Cameron Reviewed-by: Harry Yoo Reviewed-by: Vlastimil Babka Acked-by: David Hildenbrand Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: Joshua Hahn Cc: Rakie Kim Signed-off-by: Andrew Morton --- kernel/cgroup/cpuset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/cgroup/cpuset.c~kernelcpuset-use-node-notifier-instead-of-memory-notifier +++ a/kernel/cgroup/cpuset.c @@ -4051,7 +4051,7 @@ void __init cpuset_init_smp(void) cpumask_copy(top_cpuset.effective_cpus, cpu_active_mask); top_cpuset.effective_mems = node_states[N_MEMORY]; - hotplug_memory_notifier(cpuset_track_online_nodes, CPUSET_CALLBACK_PRI); + hotplug_node_notifier(cpuset_track_online_nodes, CPUSET_CALLBACK_PRI); cpuset_migrate_mm_wq = alloc_ordered_workqueue("cpuset_migrate_mm", 0); BUG_ON(!cpuset_migrate_mm_wq); _ Patches currently in -mm which might be from osalvador@suse.de are mmslub-do-not-special-case-n_normal-nodes-for-slab_nodes.patch mmmemory_hotplug-remove-status_change_nid_normal-and-update-documentation.patch mmmemory_hotplug-implement-numa-node-notifier.patch mmslub-use-node-notifier-instead-of-memory-notifier.patch mmmemory-tiers-use-node-notifier-instead-of-memory-notifier.patch driverscxl-use-node-notifier-instead-of-memory-notifier.patch drivershmat-use-node-notifier-instead-of-memory-notifier.patch kernelcpuset-use-node-notifier-instead-of-memory-notifier.patch mmmempolicy-use-node-notifier-instead-of-memory-notifier.patch mmmemory_hotplug-drop-status_change_nid-parameter-from-memory_notify.patch