Skip to content

Fix some bugs related to ramp and dax

Muchun Song linux-fsdevel linux-mm lkml nvdimm 7 versions – Applied

Status from this message: [merged mm-stable] mm-simplify-follow_invalidate_pte.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest6 patches 0 repliesApplied 6/6
  2. v66 patches 3 repliesSuperseded
  3. v56 patches 12 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v46 patches10 repliesSuperseded
v36 patches2 repliesSuperseded
v26 patches3 repliesSuperseded
v15 patches8 repliesSuperseded

Changes in v7 from the cover letter

- Remove redurant "*" above vma_address() reported by Christoph.
- Fix oops (reported by Qian) on arm64 by using "pmd_present() && pmd_devmap()" to workaround the bug in pmd_leaf() on arm64, which is fixed in another patch [1].

[1] https://lore.kernel.org/all/[email protected]/

Patches in v7 All 6 applied

#Subject and filesSizeRepliesApplied
1/6mm: rmap: fix cache flush on THP pagesmm/rmap.c+2 -10 repliesApplied
2/6dax: fix cache flush on PMD-mapped pagesfs/dax.c+2 -10 repliesApplied
3/6mm: rmap: introduce pfn_mkclean_range() to cleans PTEsinclude/linux/rmap.h mm/internal.h mm/rmap.c+74 -200 repliesApplied
4/6mm: pvmw: add support for walking devmap pagesmm/page_vma_mapped.c+9 -80 repliesApplied
5/6dax: fix missing writeprotect the pte entryfs/dax.c+12 -870 repliesApplied
6/6mm: simplify follow_invalidate_pte()include/linux/mm.h mm/memory.c+23 -610 repliesApplied

Reviews trailers per patch

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

PatchYang ShiDan WilliamsChristoph Hellwig
1/6R-b R-b R-b
2/6R-b R-b
3/6
4/6
5/6R-b
6/6R-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 3 reviewers.

Read the v7 thread

Cover letter [PATCH v7 0/6] Fix some bugs related to ramp and dax

This series is based on next-20220225.

Patch 1-2 fix a cache flush bug, because subsequent patches depend on those on those changes, there are placed in this series. Patch 3-4 are preparation for fixing a dax bug in patch 5. Patch 6 is code cleanup since the previous patch remove the usage of follow_invalidate_pte().

v7:
- Remove redurant "*" above vma_address() reported by Christoph.
- Fix oops (reported by Qian) on arm64 by using "pmd_present() && pmd_devmap()" to workaround the bug in pmd_leaf() on arm64, which is fixed in another patch [1].

[1] https://lore.kernel.org/all/[email protected]/

v6:
- Collect Reviewed-by from Christoph Hellwig.
- Fold dax_entry_mkclean() into dax_writeback_one().

v5:
- Collect Reviewed-by from Dan Williams.
- Fix panic reported by kernel test robot <[email protected]>.
- Remove pmdpp parameter from follow_invalidate_pte() and fold it into follow_pte().

v4:
- Fix compilation error on riscv.

v3:
- Based on next-20220225.

v2:
- Avoid the overly long line in lots of places suggested by Christoph.
- Fix a compiler warning reported by kernel test robot since pmd_pfn() is not defined when !CONFIG_TRANSPARENT_HUGEPAGE on powerpc architecture.
- Split a new patch 4 for preparation of fixing the dax bug.

Muchun Song (6):
mm: rmap: fix cache flush on THP pages
dax: fix cache flush on PMD-mapped pages
mm: rmap: introduce pfn_mkclean_range() to cleans PTEs
mm: pvmw: add support for walking devmap pages
dax: fix missing writeprotect the pte entry
mm: simplify follow_invalidate_pte()

 fs/dax.c             | 98 +++++++---------------------------------------------
 include/linux/mm.h   |  3 --
 include/linux/rmap.h |  3 ++
 mm/internal.h        | 26 +++++++++-----
 mm/memory.c          | 81 ++++++++++++-------------------------------
 mm/page_vma_mapped.c | 17 ++++-----
 mm/rmap.c            | 68 +++++++++++++++++++++++++++++-------
 7 files changed, 120 insertions(+), 176 deletions(-)
Signature · 1 line
2.11.0