The patch titled ocfs2: release page lock before calling ->page_mkwrite has been removed from the -mm tree. Its filename was ocfs2-release-page-lock-before-calling-page_mkwrite.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: ocfs2: release page lock before calling ->page_mkwrite From: Mark Fasheh <mark.fasheh@xxxxxxxxxx> __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@xxxxxxxxxx> Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff -puN mm/memory.c~ocfs2-release-page-lock-before-calling-page_mkwrite mm/memory.c --- a/mm/memory.c~ocfs2-release-page-lock-before-calling-page_mkwrite +++ a/mm/memory.c @@ -2369,11 +2369,14 @@ static int __do_fault(struct mm_struct * * address space wants to know that the page is about * to become writable */ - if (vma->vm_ops->page_mkwrite && - vma->vm_ops->page_mkwrite(vma, page) < 0) { - fdata.type = VM_FAULT_SIGBUS; - anon = 1; /* no anon but release faulted_page */ - goto out; + if (vma->vm_ops->page_mkwrite) { + unlock_page(page); + if (vma->vm_ops->page_mkwrite(vma, page) < 0) { + fdata.type = VM_FAULT_SIGBUS; + anon = 1; /* no anon but release faulted_page */ + goto out_unlocked; + } + lock_page(page); } } @@ -2425,6 +2428,7 @@ static int __do_fault(struct mm_struct * out: unlock_page(faulted_page); +out_unlocked: if (anon) page_cache_release(faulted_page); else if (dirty_page) { _ Patches currently in -mm which might be from mark.fasheh@xxxxxxxxxx are origin.patch git-ocfs2.patch fs-introduce-write_begin-write_end-and-perform_write-aops.patch ext3-convert-to-new-aops-fix.patch ext4-convert-to-new-aops-fix.patch ocfs2-convert-to-new-aops.patch fs-remove-some-aop_truncated_page.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html