Fix cache flush issues considering PMD sharing
Status from this message: [merged mm-stable] mm-rmap-use-flush_cache_range-to-flush-cache-for-hugetlb-pages.patch removed from -mm tree
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 7 repliesApplied 3/3
- v12 patches 4 repliesSuperseded
Changes in v2 from the cover letter
- Add reviewed-by tag from Mike.
- Update some comments suggested by Mike.
- Add a new patch to fix cache issue for hugetlb page.
Patches in v2 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mm: hugetlb: Considering PMD sharing when flushing cache/TLBsmm/ mm/ | +16 | 1 reply | Applied |
| 2/3 | mm: rmap: Move the cache flushing to the correct place for hugetlb PMD sharingmm/ | +22 | 4 replies | Applied |
| 3/3 | mm: rmap: Use flush_cache_range() to flush cache for hugetlb pagesmm/ | +48 | 2 replies | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Mike Kravetz | Muchun Song |
|---|---|---|
| 1/3 | R-b | R-b |
| 2/3 | R-b | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] Fix cache flush issues considering PMD sharing
Hi,
This patch set fixes some cache flushing issues if PMD sharing is possible for hugetlb pages, which were found by code inspection. Meanwhile Mike found the flush_cache_page() can not cover the whole size of a hugetlb page on some architectures [1], so I added a new patch 3 to fix this issue, since I found only try_to_unmap_one() and try_to_migrate_one() need to fix after some investigation.
Please help to review. Thanks.
[1] https://lore.kernel.org/linux-mm/[email protected]/
Changes from v1:
- Add reviewed-by tag from Mike.
- Update some comments suggested by Mike.
- Add a new patch to fix cache issue for hugetlb page.
Baolin Wang (3):
mm: hugetlb: Considering PMD sharing when flushing cache/TLBs
mm: rmap: Move the cache flushing to the correct place for hugetlb PMD
sharing
mm: rmap: Use flush_cache_range() to flush cache for hugetlb pages
mm/hugetlb.c | 17 ++++++++- mm/mremap.c | 2 +- mm/rmap.c | 118 ++++++++++++++++++++++++++++++++--------------------------- 3 files changed, 80 insertions(+), 57 deletions(-)
Signature · 1 line
1.8.3.1