Re: EMM: disable other notifiers before register and unregister

From: Christoph Lameter
Date: Thu Apr 03 2008 - 16:26:07 EST


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.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/