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

From: Joe Korty
Date: Fri Oct 03 2003 - 17:57:44 EST


On Fri, Oct 03, 2003 at 03:23:49PM -0700, Andrew Morton wrote:
> Joe Korty <joe.korty@xxxxxxxx> wrote:
> >
> > 2.6.0-test6: the use of mlockall(2) in a process that has mmap(2)ed
> > the registers of an IO device will hang that process uninterruptibly.
> > The task runs in an infinite loop in get_user_pages(), invoking
> > follow_page() forever.
>
> whoops.
>
> I think the right fix is in get_user_pages(): if the region is VM_IO then
> don't call follow_page() at all.
>
> Something like this?


Sigh. No go; it *looks* good but my app still locks up....

Regards,
Joe
-
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/