OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
642ac54
)
NFSv4: If a delegated open fails, ensure that we return the delegation
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 18 Oct 2005 21:20:20 +0000
(14:20 -0700)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 18 Oct 2005 21:20:20 +0000
(14:20 -0700)
Unless of course the open fails due to permission issues.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index
c10dcd1
..
a8be9af
100644
(file)
--- 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;
}