Re: Implement lookup_swap_cache for migration entries

From: Christoph Lameter
Date: Fri Apr 14 2006 - 16:13:24 EST


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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/