[PATCH] NFS: Remove unbalanced spin_unlock() calls from nfs_refresh_inode()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 30 Oct 2005 22:38:25 +0000 (17:38 -0500)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 22:46:47 +0000 (14:46 -0800)
Doh!

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfs/inode.c

index f2781ca..fc0f12b 100644 (file)
@@ -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;
        }