Skip to content

mm/hugetlb: fixes for PMD table sharing (incl. using mmu_gather)

David Hildenbrand (Arm) linux-mm stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mm/hugetlb: make detecting shared pte more reliablemm/hugetlb.c+8 -130 replies
2/6mm/hugetlb: fix copy_hugetlb_page_range() to use ->pt_share_countmm/hugetlb.c+4 -90 replies
3/6mm/hugetlb: fix hugetlb_pmd_shared()include/linux/hugetlb.h+1 -10 replies
4/6mm/hugetlb: fix two comments related to huge_pmd_unshare()mm/hugetlb.c+8 -160 replies
5/6mm/rmap: fix two comments related to huge_pmd_unshare()mm/rmap.c+4 -140 replies
6/6mm/hugetlb: fix excessive IPI broadcasts when unsharing PMD tables using mmu_gatherinclude/asm-generic/tlb.h include/linux/hugetlb.h include/linux/mm_types.h +3 more+197 -560 replies

Reviews trailers per patch

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

PatchMike KravetzHarry YooOscar SalvadorDavid HildenbrandRik van RielLance YangLaurence ObermanLorenzo Stoakes
1/6R-b
2/6R-b A-b A-b
3/6R-b A-b R-b R-b T-b T-b R-b
4/6R-b A-b R-b T-b R-b
5/6A-b R-b T-b R-b
6/6A-b T-b R-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 8 reviewers.

Read the v1 thread

Cover letter [PATCH 5.15.y 0/6] mm/hugetlb: fixes for PMD table sharing (incl. using mmu_gather)

Backport of [1] for 5.15. Backport notes are in the individual patches.

I'm also including a cleanup/fix from Miaohe that makes backporting at least a bit easier, followed by the fix from Jane.

Tested on x86-64 with the original reproducer.

[1] https://lore.kernel.org/linux-mm/[email protected]/

Cc Jane Chu <[email protected]>
Cc Harry Yoo <[email protected]>
Cc Oscar Salvador <[email protected]>
Cc Jann Horn <[email protected]>
Cc Liu Shixin <[email protected]>
Cc Muchun Song <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Laurence Oberman <[email protected]>
Cc Lance Yang <[email protected]>
Cc Liu Shixin <[email protected]>
Cc Miaohe Lin <[email protected]>

David Hildenbrand (Red Hat) (4):
mm/hugetlb: fix hugetlb_pmd_shared()
mm/hugetlb: fix two comments related to huge_pmd_unshare() mm/rmap: fix two comments related to huge_pmd_unshare() mm/hugetlb: fix excessive IPI broadcasts when unsharing PMD tables
using mmu_gather

Jane Chu (1):
mm/hugetlb: fix copy_hugetlb_page_range() to use ->pt_share_count

Miaohe Lin (1):
mm/hugetlb: make detecting shared pte more reliable

 include/asm-generic/tlb.h |  77 ++++++++++++++++++++-
 include/linux/hugetlb.h   |  17 +++--
 include/linux/mm_types.h  |   1 +
 mm/hugetlb.c              | 141 +++++++++++++++++++-------------------
 mm/mmu_gather.c           |  33 +++++++++
 mm/rmap.c                 |  38 +++++-----
 6 files changed, 210 insertions(+), 97 deletions(-)
Signature · 1 line
2.43.0