Re: [PATCH] Fix mlockall for PROT_NONE mappings

From: Linus Torvalds
Date: Thu Oct 09 2003 - 12:31:14 EST



On 9 Oct 2003, Andi Kleen wrote:
>
> I don't think so. mlockall() should never split anything.

Mut mlock_fixup() _also_ does:
- set the VM_LOCKED bit
- do page locked accounting.

So if you don't call it, you may have interesting problems later on.

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/