diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-09-22 19:39:02 +0200 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2016-09-27 20:34:01 +0200 |
commit | f7a62adad01cdb2b64c5a17cdd440736b99a5829 (patch) | |
tree | 6e42173fadeab24018c85aaa6c1ffc13973c140a /include | |
parent | NFSv4.1: Don't recheck delegations that have already been checked (diff) | |
download | linux-f7a62adad01cdb2b64c5a17cdd440736b99a5829.tar.xz linux-f7a62adad01cdb2b64c5a17cdd440736b99a5829.zip |
NFSv4.1: Allow revoked stateids to skip the call to TEST_STATEID
In some cases (e.g. when the SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED sequence
flag is set) we may already know that the stateid was revoked and that the
only valid operation we can call is FREE_STATEID. In those cases, allow
the stateid to carry the information in the type field, so that we skip
the redundant call to TEST_STATEID.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Tested-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nfs4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index c6564ada9beb..9094faf0699d 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h @@ -67,6 +67,7 @@ struct nfs4_stateid_struct { NFS4_DELEGATION_STATEID_TYPE, NFS4_LAYOUT_STATEID_TYPE, NFS4_PNFS_DS_STATEID_TYPE, + NFS4_REVOKED_STATEID_TYPE, } type; }; |