diff options
| author | Dave Chinner <[email protected]> | 2011-03-29 07:08:50 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-03-29 14:50:34 +0000 |
| commit | 0444d76ae64fffc7851797fc1b6ebdbb44ac504a (patch) | |
| tree | d0678f0f8c82f3c2b2c66a6b47242eef1b323142 /fs/ubifs/commit.c | |
| parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 (diff) | |
| download | kernel-0444d76ae64fffc7851797fc1b6ebdbb44ac504a.tar.gz kernel-0444d76ae64fffc7851797fc1b6ebdbb44ac504a.zip | |
fs: don't use igrab() while holding i_lock
Fix the incorrect use of igrab() inside the i_lock in NFS and Ceph‥
If we are already holding the i_lock, we have a reference to the
inode so we can safely use ihold() to gain an extra reference. This
avoids hangs due to lock recursion on the i_lock now that the
inode_lock is gone and igrab() uses the i_lock itself.
Signed-off-by: Dave Chinner <[email protected]>
Cc: Al Viro <[email protected]>
Cc: [email protected]
Cc: Ryan Mallon <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions
