projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d88e4d8
)
NFSv4.2: LAYOUTSTATS may return NFS4ERR_ADMIN/DELEG_REVOKED
author
Trond Myklebust
<trond.myklebust@primarydata.com>
Fri, 5 Aug 2016 16:16:19 +0000
(12:16 -0400)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Fri, 5 Aug 2016 16:18:10 +0000
(12:18 -0400)
We should handle those errors in the same way we handle the other
stateid errors: by invalidating the faulty layout stateid.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs42proc.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs42proc.c
b/fs/nfs/nfs42proc.c
index
33da841
..
6f47527
100644
(file)
--- a/
fs/nfs/nfs42proc.c
+++ b/
fs/nfs/nfs42proc.c
@@
-338,6
+338,8
@@
nfs42_layoutstat_done(struct rpc_task *task, void *calldata)
case 0:
break;
case -NFS4ERR_EXPIRED:
+ case -NFS4ERR_ADMIN_REVOKED:
+ case -NFS4ERR_DELEG_REVOKED:
case -NFS4ERR_STALE_STATEID:
case -NFS4ERR_OLD_STATEID:
case -NFS4ERR_BAD_STATEID: