Re: [PATCH 1/1] mm/memory_hotplug: fix missing rollback in __add_pages()
From: David Hildenbrand
Date: Thu Oct 01 2026 - 15:54:45 EST
On Thu, 01 Oct 2026 00:04:32 +0800, Lance Yang wrote:
> __add_pages() returns on a sparse_add_section() failure without removing
> the sections already added in the same request.
>
> For memremap_pages(), the failed range is not counted in pgmap->nr_range,
> so memunmap_pages() skips it. The sections already added in that range
> retain their vmemmap mappings and subsection bits. Retrying a
> section-aligned range can then fail with -EEXIST.
>
> [...]
Applied, thanks!
tree: mm/core.git
branch: memhp-7.4.misc
Applied patches will appear soon in mm-next, followed by linux-next.
Please report any outstanding bugs that were missed during review, so we
can either drop the patch series or decide how to fix it up.
It is encouraged to provide Acked-bys, Reviewed-bys, and Tested-bys even
though the patches have already been applied. If possible, patch trailers
will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. Further, this is not a guarantee that the
patches will go upstream. If in doubt, please check the listed branch.
[1/1] mm/memory_hotplug: fix missing rollback in __add_pages()
https://git.kernel.org/mm/core/c/c31bb839
--
Cheers,
David