summaryrefslogtreecommitdiff
path: root/rust/helpers/processor.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@kernel.org>2025-07-29 08:46:35 +0200
committerAndrew Morton <akpm@linux-foundation.org>2025-10-03 16:42:43 -0700
commitb8179af120943e2fc099ea87caa234039a709a66 (patch)
tree3d453c5f1fa931bcdee26618e7e5d0e08dafba98 /rust/helpers/processor.c
parentc6a809363a66b8ff0f6a000b5f09408a1b33eeb5 (diff)
mm/memory_hotplug: activate node before adding new memory blocks
The sysfs attributes for memory blocks require the node ID to be set and initialized, so move the node activation before adding new memory blocks. This also has the nice side effect that the BUG_ON() can be converted into a WARN_ON() as we now can handle registration errors. Link: https://lkml.kernel.org/r/20250729064637.51662-3-hare@kernel.org Fixes: b9ff036082cd ("mm/memory_hotplug.c: make add_memory_resource use __try_online_node") Signed-off-by: Hannes Reinecke <hare@kernel.org> Acked-by: David Hildenbrand <david@redhat.com> Acked-by: Oscar Salvador <osalvador@suse.de> Reviewed-by: Donet Tom <donettom@linux.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'rust/helpers/processor.c')
0 files changed, 0 insertions, 0 deletions