]> git.hungrycats.org Git - linux/commitdiff
[PATCH] NFS lookup() BKL imbalance
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Wed, 31 Jul 2002 07:24:29 +0000 (00:24 -0700)
committerTrond Myklebust <trond.myklebust@fys.uio.no>
Wed, 31 Jul 2002 07:24:29 +0000 (00:24 -0700)
One more lookup bug caught. Fix missing unlock_kernel() when doing
readdirplus cached lookups in nfs_lookup().

fs/nfs/dir.c

index 42f58d5f061a99263ab8fb60dde6b125235c6931..00090f459e7302294c30d5cc23f8b98dde2bdb03 100644 (file)
@@ -639,7 +639,7 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry)
                        nfs_renew_times(dentry);
                        error = 0;
                }
-               goto out;
+               goto out_unlock;
        }
 
        error = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, &fhandle, &fattr);
@@ -655,6 +655,7 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry)
                }
                nfs_renew_times(dentry);
        }
+out_unlock:
        unlock_kernel();
 out:
        return ERR_PTR(error);