diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-10-18 14:20:20 -0700 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-10-18 14:20:20 -0700 |
commit | b8e5c4c2978fa666287525a9de2fa648a7581262 (patch) | |
tree | b90d9aca86dcb187d985be1eb39e5f691dfcf187 /fs | |
parent | 642ac54923e0291ae2c8e42edde18d8c9c0a3c84 (diff) | |
download | kernel_samsung_espresso10-b8e5c4c2978fa666287525a9de2fa648a7581262.zip kernel_samsung_espresso10-b8e5c4c2978fa666287525a9de2fa648a7581262.tar.gz kernel_samsung_espresso10-b8e5c4c2978fa666287525a9de2fa648a7581262.tar.bz2 |
NFSv4: If a delegated open fails, ensure that we return the delegation
Unless of course the open fails due to permission issues.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index c10dcd1..a8be9af 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -658,6 +658,8 @@ out_err: } up_read(&nfsi->rwsem); up_read(&clp->cl_sem); + if (err != -EACCES) + nfs_inode_return_delegation(inode); return err; } |