Skip to content
Commit 0d88f6e8 authored by Dave Chinner's avatar Dave Chinner Committed by Linus Torvalds
Browse files

nfs: don't call __mark_inode_dirty while holding i_lock



nfs_scan_commit() is called with the inode->i_lock held, but it then
calls __mark_inode_dirty() while still holding the lock. This causes
a deadlock.

Push the inode->i_lock into nfs_scan_commit() so it can protect only
the parts of the code it needs to and can be dropped before the call
to __mark_inode_dirty() to avoid the deadlock.

Signed-off-by: default avatarDave Chinner <dchinner@redhat.com>
Tested-by: default avatarWill Simoneau <simoneau@ele.uri.edu>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 95042f9e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment