Skip to content

munmap() vs unmap_mapping_range()

Peter Zijlstra linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mmu_gather: Remove per arch tlb_{start,end}_vma()arch/Kconfig arch/csky/include/asm/tlb.h arch/loongarch/Kconfig +10 more+32 -351 reply
2/4csky/tlb: Remove tlb_flush() definearch/csky/include/asm/tlb.h+0 -21 reply
3/4mmu_gather: Let there be one tlb_{start,end}_vma() implementationinclude/asm-generic/tlb.h+2 -131 reply
4/4mmu_gather: Force tlb-flush VM_PFNMAP vmasinclude/asm-generic/tlb.h+17 -165 replies

Reviews trailers per patch

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

PatchWill Deacon
1/4A-b
2/4A-b
3/4A-b
4/4A-b

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

Read the v1 thread

Cover letter [PATCH 0/4] munmap() vs unmap_mapping_range()

Hi,

These 4 patches implement the suggestion by Linus.

The first patch nukes all architecture implementations of tlb_{start,end}_vma() by adding two additional MMU_GATHER config knobs.

DaveM, please clarify the sparc64 case, it seems a little odd to have flush_cache_range() but to explicitly not call it at unmap time. It would be nice to remove this one special case.

The second patch isn't strictly needed for this series but since I was looking at all this, I figured C-SKY didn't make a whole lot of sense. Guo, please have a look.

The third patch cleans up the #ifdeffery and provides a single tlb_{start,end}_vma() implementation for everyone.

The fourth, and final, patch does the force TLB-flush on VM_PFNMAP thing.

I've had the first three patches exposed to the robots and they've (so far) not reported build (or other) fail.