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

Andrew Morton
2002-07-29T00:47:59Z

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?

-