Skip to content

A few cleanup and fixup patches for migration

Miaohe Lin linux-mm lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 15 repliesIn review 3 of 4 applied
  2. v34 patches 5 repliesSuperseded
  3. v2 posting 2/24 patches 29 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/211 patches4 repliesSuperseded 9 of 11 applied
v116 patches56 repliesSuperseded

Changes in v4 from the cover letter

collect Reviewed-by tag of Oscar.
fix build error reported by kernel test robot.

Patches in v4 3 of 4 applied

#Subject and filesSizeRepliesApplied
1/4mm: reduce the rcu lock durationmm/mempolicy.c mm/migrate.c+2 -414 replies
2/4mm/migration: remove unneeded lock page and PageMovable checkmm/migrate.c+2 -71 replyApplied
3/4mm/migration: return errno when isolate_huge_page failedinclude/linux/hugetlb.h mm/gup.c mm/hugetlb.c +4 more+16 -160 repliesApplied
4/4mm/migration: fix potential pte_unmap on an not mapped pteinclude/linux/swapops.h mm/hugetlb.c mm/migrate.c+29 -100 repliesApplied

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchMuchun SongChristoph HellwigOscar SalvadorDavid Hildenbrand
1/4R-b R-b R-b R-b
2/4R-b R-b R-b
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/4] A few cleanup and fixup patches for migration

Hi everyone,
This series contains a few patches to remove unneeded lock page and PageMovable check, reduce the rcu lock duration. Also we fix potential pte_unmap on an not mapped pte. More details can be found in the respective changelogs. Thanks!

---
v4:
collect Reviewed-by tag of Oscar.
fix build error reported by kernel test robot.
v3:
[PATCH 1/4] mm/migration: reduce the rcu lock duration
add the analysis that the original race condition isn't possible now alsoreduce the rcu lock duration in kernel_migrate_pages
[PATCH 2/4] mm/migration: remove unneeded lock page and PageMovable check
let free_pages_prepare() clear PG_isolated for us
[PATCH 3/4] mm/migration: return errno when isolate_huge_page failed
rename isolate_huge_page to isolate_hugetlb
[PATCH 4/4] mm/migration: fix potential pte_unmap on an not mapped pte
collect Reviewed-by tag
v2:
collect Reviewed-by tag
make isolate_huge_page consistent with isolate_lru_page
add hugetlbfs variant of hugetlb_migration_entry_wait
v1:
rebase [1] on mainline.

[1] https://lore.kernel.org/lkml/[email protected]/T/
---

Miaohe Lin (4):
mm: reduce the rcu lock duration
mm/migration: remove unneeded lock page and PageMovable check mm/migration: return errno when isolate_huge_page failed mm/migration: fix potential pte_unmap on an not mapped pte

 include/linux/hugetlb.h |  6 +++---
 include/linux/swapops.h | 12 ++++++++----
 mm/gup.c                |  2 +-
 mm/hugetlb.c            | 15 +++++++--------
 mm/memory-failure.c     |  2 +-
 mm/memory_hotplug.c     |  2 +-
 mm/mempolicy.c          |  5 ++---
 mm/migrate.c            | 42 +++++++++++++++++++++++++----------------
 8 files changed, 49 insertions(+), 37 deletions(-)
Signature · 1 line
2.23.0