On Fri, 14 Apr 2006, Andrew Morton wrote: > So we're doing a get_page() on a random page which could be in any state - > it could be on the freelists, or in the per-cpu pages arrays, it could have > been reused for something else. Hmmm... Yes, Ahh! The tree_lock prohibits this sort of thing from happening to regular pages. Right.... Yuck this could be expensive to fix. We are holding the anon_vma lock while remapping migration ptes. So we could take the anonvma lock, check to see if the pte is still a migration pte if so then it cannot change and we can safely increase page count. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 0/5] Swapless page migration V2: Overview
- From: Christoph Lameter <[email protected]>
- [PATCH 2/5] Swapless V2: Add migration swap entries
- From: Christoph Lameter <[email protected]>
- Re: [PATCH 2/5] Swapless V2: Add migration swap entries
- From: Andrew Morton <[email protected]>
- Re: [PATCH 2/5] Swapless V2: Add migration swap entries
- From: Christoph Lameter <[email protected]>
- Re: [PATCH 2/5] Swapless V2: Add migration swap entries
- From: Andrew Morton <[email protected]>
- Re: [PATCH 2/5] Swapless V2: Add migration swap entries
- From: Christoph Lameter <[email protected]>
- Re: [PATCH 2/5] Swapless V2: Add migration swap entries
- From: Andrew Morton <[email protected]>
- Re: [PATCH 2/5] Swapless V2: Add migration swap entries
- From: Christoph Lameter <[email protected]>
- Re: [PATCH 2/5] Swapless V2: Add migration swap entries
- From: Andrew Morton <[email protected]>
- Implement lookup_swap_cache for migration entries
- From: Christoph Lameter <[email protected]>
- Re: Implement lookup_swap_cache for migration entries
- From: Andrew Morton <[email protected]>
- Re: Implement lookup_swap_cache for migration entries
- From: Christoph Lameter <[email protected]>
- Re: Implement lookup_swap_cache for migration entries
- From: Andrew Morton <[email protected]>
- Re: Implement lookup_swap_cache for migration entries
- From: Christoph Lameter <[email protected]>
- Re: Implement lookup_swap_cache for migration entries
- From: Andrew Morton <[email protected]>
- [PATCH 0/5] Swapless page migration V2: Overview
- Prev by Date: [PATCH 2/7] driver core: safely unbind drivers for devices not on a bus
- Next by Date: [PATCH 6/7] pm: print name of failed suspend function
- Previous by thread: Re: Implement lookup_swap_cache for migration entries
- Next by thread: Wait for migrating page after incr of page count under anon_vma lock
- Index(es):