Re: [patch 2/5] Reinstate ZERO_PAGE optimization in get_user_pages()and fix XIP
From: Hugh Dickins
Date: Mon Jun 23 2008 - 12:09:13 EST
On Mon, 23 Jun 2008, Jeff Chua wrote:
> On Mon, Jun 23, 2008 at 4:29 AM, Greg KH <gregkh@xxxxxxx> wrote:
> > On Sun, Jun 22, 2008 at 12:22:47PM -0700, Linus Torvalds wrote:
> >> Let's wait for the vmware breakage report to sort out first.
> >> http://lkml.org/lkml/2008/6/22/10
> >> before moving it to -stable.
> >
> > Sure, thanks for pointing that out to me, I'll track it as well.
>
> I can confirm that the 2nd patch from Linus fixed the problem.
>
> http://lkml.org/lkml/2008/6/22/107
>
> Sorry it took so long. Traveling.
Long?! That was very quick, thanks for reporting back.
But I'm afraid you've pushed me into taking another look at that
patch, and I see a problem with it. To be honest, I've lost the
plot on this issue, and didn't really get what your problem is,
nor how Linus expected to be fixing it.
The problem is that "insane" VM_LOCKED test which he has removed.
I've remembered now what that's about: it's for make_pages_present.
We do want mlocking a readonly area to make its pages present, even
if they're not at this moment writable: we don't want the ZERO_PAGE
substitution in that case.
So I think Linus needs to factor that into the final patch,
whilst at the same time solving whatever is the vmware breakage.
Hugh
--
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/