Re: EMM: disable other notifiers before register and unregister

Christoph Lameter
2008-04-03T20:23:12Z

On Thu, 3 Apr 2008, Christoph Lameter wrote:

> > faults). So it should be ok to take all those locks inside the
> > mmap_sem and implement a lock_vm(mm) unlock_vm(mm). I'll think more
> > about this hammer approach while I try to implement it...
>
> Well good luck. Hopefully we will get to something that works.

Another hammer to use may be the freezer from software suspend. With that
you can get all tasks of a process into a definite state. Then take the
mmap_sem writably. But then there is still try_to_unmap and friends that
can race.