[PATCH v2 0/2] mm: free unused page table allocated by do_set_pmd()

David Hildenbrand (Arm) posted 2 patches 2 weeks, 3 days ago
include/linux/mm.h |  3 ++-
mm/filemap.c       |  2 +-
mm/khugepaged.c    |  2 +-
mm/memory.c        | 16 +++++++++++++---
4 files changed, 17 insertions(+), 6 deletions(-)
[PATCH v2 0/2] mm: free unused page table allocated by do_set_pmd()
Posted by David Hildenbrand (Arm) 2 weeks, 3 days ago
This isn't super urgent, so it can wait for 7.5.

Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
---
Changes in v2:
- Free the table in do_set_pmd() instead.
- Add "mm: don't allocate a page table under RCU in do_set_pmd()"
- Link to v1: https://patch.msgid.link/20261105-khugepaged_set_pmd-v1-1-cb79ab117199@kernel.org

---

David Hildenbrand (Arm) (2):
      mm: free unused page table allocated by do_set_pmd()
      mm: don't allocate a page table under RCU in do_set_pmd()

 include/linux/mm.h |  3 ++-
 mm/filemap.c       |  2 +-
 mm/khugepaged.c    |  2 +-
 mm/memory.c        | 16 +++++++++++++---
 4 files changed, 17 insertions(+), 6 deletions(-)

---

base-commit: f44fd601f72e09e44c667b9234c9cd469856679c

change-id: 20261105-khugepaged_set_pmd-60a02f718e64

--

Cheers,

David
Re: [PATCH v2 0/2] mm: free unused page table allocated by do_set_pmd()
Posted by David Hildenbrand 2 weeks ago
On Fri, 06 Nov 2026 13:36:11 +0100, David Hildenbrand (Arm) wrote:
> This isn't super urgent, so it can wait for 7.5.

Applied, thanks!

tree: mm/core.git
branch: core-7.5.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/2] mm: free unused page table allocated by do_set_pmd()
      https://git.kernel.org/mm/core/c/e5111d38
[2/2] mm: don't allocate a page table under RCU in do_set_pmd()
      https://git.kernel.org/mm/core/c/bd4d4f8d

-- 
Cheers,

David