]> err.no Git - linux-2.6/commit
ocfs2: release page lock before calling ->page_mkwrite
authorMark Fasheh <mark.fasheh@oracle.com>
Thu, 19 Jul 2007 08:47:00 +0000 (01:47 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:41 +0000 (10:04 -0700)
commit6967614761fd305b3414d9485d89dc2e0a407410
tree498bd41e9cf8795535f597696dd2c834d79ffb44
parent54cb8821de07f2ffcd28c380ce9b93d5784b40d7
ocfs2: release page lock before calling ->page_mkwrite

__do_fault() was calling ->page_mkwrite() with the page lock held, which
violates the locking rules for that callback.  Release and retake the page
lock around the callback to avoid deadlocking file systems which manually
take it.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c