Skip to content

mm/migrate: move NUMA hinting fault folio isolation + checks under PTL

David Hildenbrand linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 21 repliesIn review 1 of 2 applied

Patches in v1 1 of 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/migrate: make migrate_misplaced_folio() return 0 on successmm/huge_memory.c mm/memory.c mm/migrate.c+5 -64 repliesApplied
2/2mm/migrate: move NUMA hinting fault folio isolation + checks under PTLinclude/linux/migrate.h mm/huge_memory.c mm/memory.c +1 more+55 -5017 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBaolin WangDonet Tom
1/2R-b
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] mm/migrate: move NUMA hinting fault folio isolation + checks under PTL

Working on moving some mapcount related checks -- especially folio_likely_mapped_shared() invocations -- under the PTL, where we are sure the folio will remain mapped and the consequently the values are actually expressive in current MM context, there are not that many problematic bits to sort out.

This series tackles the NUMA hinting fault handling: we now perform checks and folio isolation under PTL with the nice side effect that we have to take less temporary folio references.

Did a quick test on a 2 socket system, NUMA hinting+migration on PTEs and PMDs seems to continue working as expected.

Cc Andrew Morton <[email protected]>

David Hildenbrand (2):
mm/migrate: make migrate_misplaced_folio() return 0 on success mm/migrate: move NUMA hinting fault folio isolation + checks under PTL

 include/linux/migrate.h |  7 ++++
 mm/huge_memory.c        | 13 ++++---
 mm/memory.c             | 11 +++---
 mm/migrate.c            | 81 +++++++++++++++++++----------------------
 4 files changed, 58 insertions(+), 54 deletions(-)

base-commit: a53138cdbe3ea8875405e96fa9cde64e24f4f9e1

Signature · 1 line
2.45.2