• Hugh Dickins's avatar
    [PATCH] rmaplock: mm lock ordering · 9d9ae43b
    Hugh Dickins authored
    With page_map_lock out of the way, there's no need for page_referenced and
    try_to_unmap to use trylocks - provided we switch anon_vma->lock and
    mm->page_table_lock around in anon_vma_prepare.  Though I suppose it's
    possible that we'll find that vmscan makes better progress with trylocks than
    spinning - we're free to choose trylocks again if so.
    
    Try to update the mm lock ordering documentation in filemap.c.  But I still
    find it confusing, and I've no idea of where to stop.  So add an mm lock
    ordering list I can understand to rmap.c.
    Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    9d9ae43b
rmap.c 21.3 KB