From: Trond Myklebust Date: Sun, 30 Oct 2005 22:38:25 +0000 (-0500) Subject: [PATCH] NFS: Remove unbalanced spin_unlock() calls from nfs_refresh_inode() X-Git-Tag: v2.6.15-rc1~728^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3f8cf489993658702b7e58ff37162246263de53;p=linux-2.6 [PATCH] NFS: Remove unbalanced spin_unlock() calls from nfs_refresh_inode() Doh! Signed-off-by: Trond Myklebust Signed-off-by: Linus Torvalds --- diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index f2781ca427..fc0f12ba89 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -1274,14 +1274,12 @@ static int nfs_check_inode_attributes(struct inode *inode, struct nfs_fattr *fat } if ((fattr->valid & NFS_ATTR_FATTR) == 0) { - spin_unlock(&inode->i_lock); return 0; } /* Has the inode gone and changed behind our back? */ if (nfsi->fileid != fattr->fileid || (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) { - spin_unlock(&inode->i_lock); return -EIO; }