From: Christoph Lameter Date: Wed, 1 Mar 2006 00:59:16 +0000 (-0800) Subject: [PATCH] remove_from_swap: fix locking X-Git-Tag: v2.6.16-rc6~146 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8788c0cce63e0cc8689a123d1ce0af1e28cd583;p=pandora-kernel.git [PATCH] remove_from_swap: fix locking remove_from_swap() currently attempts to use page_lock_anon_vma to obtain an anon_vma lock. That is not working since the page may have been remapped via swap ptes in order to move the page. However, do_migrate_pages() obtain the mmap_sem lock and therefore there is a guarantee that the anonymous vma will not vanish from under us. There is therefore no need to use page_lock_anon_vma. Signed-off-by: Christoph Lameter Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed