Re: [PATCH] Fix mlockall for PROT_NONE mappings

From: Andi Kleen
Date: Thu Oct 09 2003 - 11:36:02 EST


On Thu, Oct 09, 2003 at 08:40:09AM -0700, Linus Torvalds wrote:
>
> On Thu, 9 Oct 2003, Andi Kleen wrote:
> >
> > Ok, here's a new version.
>
> Still won't work.
>
> You need to call mlock_fixup() to split the vma properly (it might not
> cover the whole vma, and we _do_ want to keep track of the VM_LOCKED flag
> correctly.

I don't think so. mlockall() should never split anything.

mlock may, but I didn't change its behaviour.

-Andi

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