Skip to content

Commit 4d80f2e

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
NFS: Remove the BKL from the permission checking code
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent fa6dc9d commit 4d80f2e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/nfs/dir.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,8 +1982,6 @@ int nfs_permission(struct inode *inode, int mask, struct nameidata *nd)
19821982
}
19831983

19841984
force_lookup:
1985-
lock_kernel();
1986-
19871985
if (!NFS_PROTO(inode)->access)
19881986
goto out_notsup;
19891987

@@ -1993,7 +1991,6 @@ int nfs_permission(struct inode *inode, int mask, struct nameidata *nd)
19931991
put_rpccred(cred);
19941992
} else
19951993
res = PTR_ERR(cred);
1996-
unlock_kernel();
19971994
out:
19981995
dfprintk(VFS, "NFS: permission(%s/%ld), mask=0x%x, res=%d\n",
19991996
inode->i_sb->s_id, inode->i_ino, mask, res);
@@ -2002,7 +1999,6 @@ int nfs_permission(struct inode *inode, int mask, struct nameidata *nd)
20021999
res = nfs_revalidate_inode(NFS_SERVER(inode), inode);
20032000
if (res == 0)
20042001
res = generic_permission(inode, mask, NULL);
2005-
unlock_kernel();
20062002
goto out;
20072003
}
20082004

0 commit comments

Comments
 (0)