diff options
author | Christoph Lameter <clameter@engr.sgi.com> | 2006-02-28 16:59:16 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-28 20:53:44 -0800 |
commit | e8788c0cce63e0cc8689a123d1ce0af1e28cd583 (patch) | |
tree | 9350d9fc11a5a6ca81d4ee063278999e4dfe869d /mm/nommu.c | |
parent | 6af6aab34a88050c8270ef75ddbdefef5c1dca00 (diff) | |
download | linux-3.10-e8788c0cce63e0cc8689a123d1ce0af1e28cd583.tar.gz linux-3.10-e8788c0cce63e0cc8689a123d1ce0af1e28cd583.tar.bz2 linux-3.10-e8788c0cce63e0cc8689a123d1ce0af1e28cd583.zip |
[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 <clameter@sgi.com>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/nommu.c')
0 files changed, 0 insertions, 0 deletions