[PATCH v5 08/15] mm: Add unsafe_follow_pfn

Jason Gunthorpe jgg at ziepe.ca
Mon Nov 2 12:16:39 EST 2020


On Mon, Nov 02, 2020 at 05:42:20PM +0100, Daniel Vetter wrote:
> > Need to hold the lock to check that and there are two ways to register
> > notifiers these days, so it feels to expensive to me.
> 
> Uh I mixed stuff up all along, struct mmu_notifier *subcription that
> all the mmu notifier users use has the ->mm pointer we want right
> there. That's good enough I think.

Yah, if you can pass in one of those instead of the raw mm it would be
fine

Jason



More information about the linux-arm-kernel mailing list