Ver Fonte

NFSv4.2: LAYOUTSTATS may return NFS4ERR_ADMIN/DELEG_REVOKED

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>
Trond Myklebust há 9 anos atrás
pai
commit
206b3bb574
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      fs/nfs/nfs42proc.c

+ 2 - 0
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: