mm: madvise avoid exclusive mmap_sem
authorNick Piggin <npiggin@suse.de>
Sun, 6 May 2007 21:49:53 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:12:54 +0000 (12:12 -0700)
commit0a27a14a62921b438bb6f33772690d345a089be6
tree3a0a23880832ded1160b60a93300f4248a7de91f
parentb4169525bc2336ea6581c6ff2aa88b2671e3b9f9
mm: madvise avoid exclusive mmap_sem

Avoid down_write of the mmap_sem in madvise when we can help it.

Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/madvise.c