From: Dave Chinner Date: Tue, 29 Mar 2011 07:08:50 +0000 (+1100) Subject: fs: don't use igrab() while holding i_lock X-Git-Tag: v2.6.39-rc1~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0444d76ae64fffc7851797fc1b6ebdbb44ac504a;p=pandora-kernel.git 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 Cc: Al Viro Cc: linux-fsdevel@vger.kernel.org Cc: Ryan Mallon Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed