Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk

From: KOSAKI Motohiro
Date: Wed Mar 31 2010 - 22:10:14 EST


> So there is a very real reason for that pattern existing. It's just that
> that reason has nothing to do with locking the thing into the page tables.
> That is absolutely NOT guaranteed by the get_user_pages() physical page
> pinning (munmap() is an extreme example of this, but I think swapout will
> clear it too in try_to_unmap_one().

Right. To increment page->count only affect vmscan to prevent free page.
Not prevent pageout I/O nor page unmapping from a process.

Thanks.


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