]> bbs.cooldavid.org Git - net-next-2.6.git/commit - mm/msync.c
[PATCH] msync(MS_SYNC): don't hold mmap_sem while syncing
authorAndrew Morton <akpm@osdl.org>
Fri, 24 Mar 2006 11:18:13 +0000 (03:18 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:26 +0000 (07:33 -0800)
commit707c21c848deeb0200ba3f07e4ba90e6dc419c2f
treed8e8f32916ac1f04e45e42595ddd0ef771ddb1ad
parent9c50823eebf7c256b92b4e0f02b5fb30e97788c2
[PATCH] msync(MS_SYNC): don't hold mmap_sem while syncing

It seems bad to hold mmap_sem while performing synchronous disk I/O.  Alter
the msync(MS_SYNC) code so that the lock is released while we sync the file.

Cc: Hugh Dickins <hugh@veritas.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/msync.c