Commit 7a4050791b23c55a451974027d41d72a9b78039b

Authored by Nick Piggin
Committed by Linus Torvalds
1 parent d773ed6b85

mm: document tree_lock->zone.lock lockorder

zone->lock is quite an "inner" lock and mostly constrained to page alloc as
well, so like slab locks, it probably isn't something that is critically
important to document here.  However unlike slab locks, zone lock could be
used more widely in future, and page_alloc.c might possibly have more
business to do tricky things with pagecache than does slab.  So...  I don't
think it hurts to document it.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 2 changed files with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -63,6 +63,7 @@
63 63 * ->private_lock (__free_pte->__set_page_dirty_buffers)
64 64 * ->swap_lock (exclusive_swap_page, others)
65 65 * ->mapping->tree_lock
  66 + * ->zone.lock
66 67 *
67 68 * ->i_mutex
68 69 * ->i_mmap_lock (truncate->unmap_mapping_range)
... ... @@ -36,6 +36,7 @@
36 36 * mapping->tree_lock (widely used, in set_page_dirty,
37 37 * in arch-dependent flush_dcache_mmap_lock,
38 38 * within inode_lock in __sync_single_inode)
  39 + * zone->lock (within radix tree node alloc)
39 40 */
40 41  
41 42 #include <linux/mm.h>