lkml.org 
[lkml]   [2006]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Implement lookup_swap_cache for migration entries
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-14 22:16    [W:0.072 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site