Commit 386b34c2 authored by Trond Myklebust's avatar Trond Myklebust

[PATCH] NFS lookup() BKL imbalance

One more lookup bug caught. Fix missing unlock_kernel() when doing
readdirplus cached lookups in nfs_lookup().
parent 9fb72010
...@@ -639,7 +639,7 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry) ...@@ -639,7 +639,7 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry)
nfs_renew_times(dentry); nfs_renew_times(dentry);
error = 0; error = 0;
} }
goto out; goto out_unlock;
} }
error = NFS_PROTO(dir)->lookup(dir, &dentry->d_name, &fhandle, &fattr); 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) ...@@ -655,6 +655,7 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry)
} }
nfs_renew_times(dentry); nfs_renew_times(dentry);
} }
out_unlock:
unlock_kernel(); unlock_kernel();
out: out:
return ERR_PTR(error); return ERR_PTR(error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment