Skip to content

NFS recover from delegation stateid error

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3NFSv4.1: Fix the checking of the stateid when returning a delegationfs/nfs/callback_proc.c fs/nfs/delegation.c+4 -43 replies
2/3NFS: Properly handle the case where the delegation is revokedfs/nfs/delegation.c fs/nfs/delegation.h fs/nfs/nfs4_fs.h +2 more+54 -20 replies
3/3NFSv4.1 do not clear NFS_DELEAGED_STATE until stateid is testedfs/nfs/nfs4state.c+4 -14 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] NFS recover from delegation stateid error

From: Andy Adamson <[email protected]>

These patches fix recovery from NFS4ERR_BAD_STATEID, NFS4ERR_ADMIN_REVOKED, and NFS4ERR_DELEG_REVOKED errors by removing the delegation record, testing the delegation stateid, and recovering via an OPEN with CLAIM_NULL.

Tested with a pynfs test that removes the pynfs server delegation stateid and return NFS4ERR_BAD_STATEID upon a READ.

Andy Adamson (1):
NFSv4.1 do not clear NFS_DELEAGED_STATE until stateid is tested

Trond Myklebust (2):
NFSv4.1: Fix the checking of the stateid when returning a delegation
NFS: Properly handle the case where the delegation is revoked

 fs/nfs/callback_proc.c |    6 +++---
 fs/nfs/delegation.c    |   13 ++++++++++++-
 fs/nfs/delegation.h    |    1 +
 fs/nfs/nfs4_fs.h       |    2 ++
 fs/nfs/nfs4proc.c      |   16 ++++++++++++++--
 fs/nfs/nfs4state.c     |   31 ++++++++++++++++++++++++++++++-
 6 files changed, 62 insertions(+), 7 deletions(-)
Signature · 1 line
1.7.6.4