projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa6dc9d
)
NFS: Remove the BKL from the permission checking code
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 11 Jun 2008 19:44:18 +0000
(15:44 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 15 Jul 2008 22:10:52 +0000
(18:10 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c
patch
|
blob
|
history
diff --git
a/fs/nfs/dir.c
b/fs/nfs/dir.c
index d6ec1c85995a59171852a08f8062c5b0ef550d5f..73e0f9740dd1ae35807055666f4ffa0a41aa2cbb 100644
(file)
--- a/
fs/nfs/dir.c
+++ b/
fs/nfs/dir.c
@@
-1982,8
+1982,6
@@
int nfs_permission(struct inode *inode, int mask, struct nameidata *nd)
}
force_lookup:
- lock_kernel();
-
if (!NFS_PROTO(inode)->access)
goto out_notsup;
@@
-1993,7
+1991,6
@@
force_lookup:
put_rpccred(cred);
} else
res = PTR_ERR(cred);
- unlock_kernel();
out:
dfprintk(VFS, "NFS: permission(%s/%ld), mask=0x%x, res=%d\n",
inode->i_sb->s_id, inode->i_ino, mask, res);
@@
-2002,7
+1999,6
@@
out_notsup:
res = nfs_revalidate_inode(NFS_SERVER(inode), inode);
if (res == 0)
res = generic_permission(inode, mask, NULL);
- unlock_kernel();
goto out;
}