Skip to content

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

David Hildenbrand (Arm) linux-mm stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mm/hugetlb: fix copy_hugetlb_page_range() to use ->pt_share_countmm/hugetlb.c+4 -90 replies
2/4mm/hugetlb: fix hugetlb_pmd_shared()include/linux/hugetlb.h+1 -10 replies
3/4mm/hugetlb: fix two comments related to huge_pmd_unshare()mm/hugetlb.c+8 -160 replies
4/4mm/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+207 -660 replies

Reviews trailers per patch

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

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

Read the v1 thread

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

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

The patch "mm/rmap: fix two comments related to huge_pmd_unshare()" was already backported.

While backporting I realized that Jane's fix was not backported yet.

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 David Hildenbrand <[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]>

David Hildenbrand (Red Hat) (3):
mm/hugetlb: fix hugetlb_pmd_shared()
mm/hugetlb: 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

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