Re: mlockall and mmap of IO devices don't mix

From: David S. Miller
Date: Sat Oct 04 2003 - 00:48:59 EST


On Fri, 3 Oct 2003 17:27:27 -0700
Andrew Morton <akpm@xxxxxxxx> wrote:

> Maybe it's best to not overload VM_RESERVED in this manner, but to always
> mark /dev/mem as VM_IO.

Just in cast is isn't clear, it should be defined that anything
that sets VM_IO on an mmap() area should prefill the page tables
as a side effect of such a mmap() request.

Then things like mlockall() have simple semantics on VM_IO area, they
end up being a nop.
-
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/