Dave Chinner 0444d76ae6 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 <dchinner@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Cc: Ryan Mallon <ryan@bluewatersys.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-03-29 07:50:34 -07:00
..
2011-02-25 11:12:37 -08:00
2011-03-10 08:52:07 +01:00
2011-03-10 08:52:07 +01:00
2011-03-10 13:22:34 -06:00
2011-03-10 08:52:07 +01:00
2011-03-10 08:52:07 +01:00
2011-01-14 09:23:36 -08:00
2011-01-12 20:03:42 -05:00
2011-01-07 17:50:26 +11:00
2011-03-17 14:02:57 +01:00
2011-01-07 17:50:26 +11:00
2011-03-22 16:01:49 -07:00
2011-03-10 08:52:07 +01:00
2011-01-07 17:50:26 +11:00
2011-03-21 00:16:09 -04:00
2011-03-15 02:21:44 -04:00
2011-01-07 17:50:27 +11:00
2011-03-27 19:30:19 -07:00
2011-03-21 00:16:08 -04:00
2011-03-10 08:52:26 +01:00
2011-03-21 01:10:41 -04:00
2011-01-07 17:50:33 +11:00
2011-03-14 09:15:28 -04:00