Re: [PATCH 04/14] mm,migration: Allow the migration of PageSwapCachepages

From: Christoph Lameter
Date: Thu Apr 22 2010 - 15:42:35 EST


On Thu, 22 Apr 2010, Mel Gorman wrote:

> vma_adjust() is updating anon VMA information without any locks taken.
> In constract, file-backed mappings use the i_mmap_lock. This lack of
> locking can result in races with page migration. During rmap_walk(),
> vma_address() can return -EFAULT for an address that will soon be valid.
> This leaves a dangling migration PTE behind which can later cause a
> BUG_ON to trigger when the page is faulted in.

Isnt this also a race with reclaim / swap?
--
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/