Re: [patch 2/13] remove pages from the LRU in __free_pages_ok()

Andrew Morton (akpm@zip.com.au)
Sun, 28 Jul 2002 17:59:52 -0700


Linus Torvalds wrote:
>
> On Sun, 28 Jul 2002, Andrew Morton wrote:
> >
> > OK. This means that put_page() against userspace-mapped pages
> > is to be avoided.
>
> Yes. I think we've gotten most of it, and I just fixed the
> access_process_vm() thing in my tree.

OK. Please do the smbfs one as well. That's an outright
race with truncate now. Because we took the lru_cache_del()
out of truncate_complete_page() in the rmap merge.

And we took the lru_cache_del() out of truncate_complete_page()
because, err, I forget. There was a situation in which the page
could still be mapped into process pagetables, and the lru_cache_del()
would have left it unswappable until process exit.

Rik, can you remember the exact scenario?

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/