Messages in this thread | | | Date | Mon, 2 Nov 2020 13:16:39 -0400 | From | Jason Gunthorpe <> | Subject | Re: [PATCH v5 08/15] mm: Add unsafe_follow_pfn |
| |
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
| |