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