Re: [PATCH 08/16] mm: add remap_pfn_range_prepare(), remap_pfn_range_complete()
From: Jason Gunthorpe
Date: Mon Sep 08 2025 - 09:36:09 EST
On Mon, Sep 08, 2025 at 02:27:12PM +0100, Lorenzo Stoakes wrote:
> It's not only remap that is a concern here, people do all kinds of weird
> and wonderful things in .mmap(), sometimes in combination with remap.
So it should really not be split this way, complete is a badly name
prepopulate and it should only fill the PTEs, which shouldn't need
more locking.
The only example in this series didn't actually need to hold the lock.
Jason