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

From: Andi Kleen
Date: Sat Oct 04 2003 - 02:05:53 EST


Joe Korty <joe.korty@xxxxxxxx> writes:

>
> I do not believe that the above constitutes a correct fix. The
> problem is that follow_pages() is fundamentally not able to handle a
> mapping which does not have a 'struct page' backing it up, and a
> mapping to IO memory by definition has no 'struct page' structure to
> back it up.

The 2.4 vm scanner handles this by always checking VALID_PAGE().

Maybe follow_pages() should do that too?

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