]> git.hungrycats.org Git - linux/commit
[PATCH] rmaplock: mm lock ordering
authorHugh Dickins <hugh@veritas.com>
Tue, 24 Aug 2004 04:24:34 +0000 (21:24 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:24:34 +0000 (21:24 -0700)
commit9d9ae43b26ac90bab0213b8bb1245ac9ef966a97
treee4801026e5aae7ba69d78bf3f15f21bc59a18d1e
parent77631565ae40a44f23eac2e9c440cbceed8962a7
[PATCH] rmaplock: mm lock ordering

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: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/filemap.c
mm/rmap.c