Skip to content

mm: cleanups for device-exclusive entries (hmm)

David Hildenbrand linux-mm lkml 3 versions – Applied

Status from this message: [merged mm-stable] mm-mmu_notifier-use-mmu_notify_clear-in-remove_device_exclusive_entry.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/25 patches 0 repliesApplied 5/5
  2. v2 posting 1/217 patches 13 repliesApplied 17/17
  3. v14 patches 15 repliesSuperseded

Changes in v2 from the cover letter

* Rebased on top of [1]
* "mm/memory: remove PageAnonExclusive sanity-check in restore_exclusive_pte()"
-> Added
* "mm/memory: document restore_exclusive_pte()"
-> adjust/clarify/simplify documentation
* "mm/mmu_notifier: use MMU_NOTIFY_CLEAR in remove_device_exclusive_entry()"
-> Use MMU_NOTIFY_EXCLUSIVE only for a single purpose such that we
always have the owner

[1] https://lkml.kernel.org/r/[email protected]

Patches in v2 posting 2/2 All 5 applied

#Subject and filesSizeRepliesApplied
1/5lib/test_hmm: make dmirror_atomic_map() consume a single pagelib/test_hmm.c+10 -220 repliesApplied
2/5mm/memory: remove PageAnonExclusive sanity-check in restore_exclusive_pte()mm/memory.c+0 -30 repliesApplied
3/5mm/memory: pass folio and pte to restore_exclusive_pte()mm/memory.c+14 -150 repliesApplied
4/5mm/memory: document restore_exclusive_pte()mm/memory.c+26 -00 repliesApplied
5/5mm/mmu_notifier: use MMU_NOTIFY_CLEAR in remove_device_exclusive_entry()include/linux/mmu_notifier.h mm/memory.c+5 -50 repliesApplied

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchAlistair Popple
1/5R-b
2/5
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] mm: cleanups for device-exclusive entries (hmm)

Based on mm/mm-unstable, which already contains [1].

Some smaller device-exclusive cleanups I have lying around. Tested using the hmm selftests without surprises.

Cc Andrew Morton <[email protected]>
Cc "Jérôme Glisse" <[email protected]>
Cc Simona Vetter <[email protected]>
Cc Alistair Popple <[email protected]>
Cc Jason Gunthorpe <[email protected]>

v1 -> v2:
* Rebased on top of [1]
* "mm/memory: remove PageAnonExclusive sanity-check in restore_exclusive_pte()"
-> Added
* "mm/memory: document restore_exclusive_pte()"
-> adjust/clarify/simplify documentation
* "mm/mmu_notifier: use MMU_NOTIFY_CLEAR in remove_device_exclusive_entry()"
-> Use MMU_NOTIFY_EXCLUSIVE only for a single purpose such that we
always have the owner

[1] https://lkml.kernel.org/r/[email protected]

David Hildenbrand (5):
lib/test_hmm: make dmirror_atomic_map() consume a single page mm/memory: remove PageAnonExclusive sanity-check in
restore_exclusive_pte()
mm/memory: pass folio and pte to restore_exclusive_pte() mm/memory: document restore_exclusive_pte() mm/mmu_notifier: use MMU_NOTIFY_CLEAR in
remove_device_exclusive_entry()

 include/linux/mmu_notifier.h |  8 ++---
 lib/test_hmm.c               | 32 ++++++-------------
 mm/memory.c                  | 60 ++++++++++++++++++++++++------------
 3 files changed, 55 insertions(+), 45 deletions(-)

base-commit: 598d34afeca6bb10554846cf157a3ded8729516c

Signature · 1 line
2.48.1