Re: [PATCH -v2] rmap: make anon_vma_prepare link in all the anon_vmasof a mergeable VMA

From: Linus Torvalds
Date: Sat Apr 10 2010 - 14:32:01 EST




On Sat, 10 Apr 2010, Linus Torvalds wrote:
>
> I dunno. Does the above sound at all sane? Or am I just raving?
>
> Something hacky like the above might fix it if I'm not just raving. I
> really might be missing something here.

Btw, if this turns out to be accurate, the real fix is to probably just
have a separate phase at the very end to actually release all the vma's,
rather than do it in "free_page_tables()". We don't want to make the
tlb-gather any more atomic than it already is. In fact, Nick is trying to
make it preemptible.

So the patch included in that mail was meant very much as a "let's test my
crazy theory" patch, rather than as the real solution.

The patch is also untested. Maybe it doesn't work at all and introduces
new bugs. Caveat emptor.

Linus
--
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/