Skip to content

Cleanup and fixup for mm/migrate.c

Miaohe Lin linux-mm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 3 repliesIn review 4 of 5 applied
  2. v25 patches 9 repliesSuperseded
  3. v15 patches 9 repliesSuperseded

Changes in v3 from the cover letter

Collect Reviewed-by tag
Revert commit c77c5cbafe54 ("mm: migrate: skip shared exec THP for NUMA balancing") per Yang
Remove all 3 VM_BUG_ON_PAGE and make putback_movable_page static per Yang

Patches in v3 4 of 5 applied

#Subject and filesSizeRepliesApplied
1/5mm/migrate.c: make putback_movable_page() staticinclude/linux/migrate.h mm/migrate.c+1 -72 replies
2/5mm/migrate.c: remove unnecessary rc != MIGRATEPAGE_SUCCESS check in 'else' casemm/migrate.c+1 -10 repliesApplied
3/5mm/migrate.c: fix potential indeterminate pte entry in migrate_vma_insert_page()mm/migrate.c+7 -01 replyApplied
4/5mm/migrate.c: use helper migrate_vma_collect_skip() in migrate_vma_collect_hole()mm/migrate.c+11 -170 repliesApplied
5/5Revert "mm: migrate: skip shared exec THP for NUMA balancing"mm/migrate.c+2 -160 repliesApplied

Reviews trailers per patch

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

PatchYang ShiDavid Hildenbrand
1/5R-b R-b
2/5R-b R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/5] Cleanup and fixup for mm/migrate.c

Hi all,
This series contains cleanups to remove unnecessary VM_BUG_ON_PAGE and rc != MIGRATEPAGE_SUCCESS check. Also use helper function to remove some duplicated codes. What's more, this fixes potential deadlock in NUMA balancing shared exec THP case and so on. More details can be found in the respective changelogs. Thanks!

v2->v3:
Collect Reviewed-by tag
Revert commit c77c5cbafe54 ("mm: migrate: skip shared exec THP for NUMA balancing") per Yang
Remove all 3 VM_BUG_ON_PAGE and make putback_movable_page static per Yang

v1->v2:
Fix removing the wrong assertion per Rafael.
Use pr_warn_once() instead per David.
Collect Reviewed-by tag.

Miaohe Lin (5):
mm/migrate.c: make putback_movable_page() static mm/migrate.c: remove unnecessary rc != MIGRATEPAGE_SUCCESS check in
'else' case
mm/migrate.c: fix potential indeterminate pte entry in
migrate_vma_insert_page()
mm/migrate.c: use helper migrate_vma_collect_skip() in
migrate_vma_collect_hole()
Revert "mm: migrate: skip shared exec THP for NUMA balancing"

 include/linux/migrate.h |  1 -
 mm/migrate.c            | 62 +++++++++++++++--------------------------
 2 files changed, 22 insertions(+), 41 deletions(-)
Signature · 1 line
2.19.1