summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4session.h
diff options
context:
space:
mode:
authorTrond Myklebust2016-08-28 16:28:25 +0200
committerTrond Myklebust2016-08-28 20:23:26 +0200
commit07e8dcbda71ef87e9cbdc42b5bb16a44c1ab839b (patch)
tree09746429d46c78b9c217805eb17b3e026063ae9a /fs/nfs/nfs4session.h
parentNFSv4.1: Delay callback processing when there are referring triples (diff)
downloadkernel-qcow2-linux-07e8dcbda71ef87e9cbdc42b5bb16a44c1ab839b.tar.gz
kernel-qcow2-linux-07e8dcbda71ef87e9cbdc42b5bb16a44c1ab839b.tar.xz
kernel-qcow2-linux-07e8dcbda71ef87e9cbdc42b5bb16a44c1ab839b.zip
NFSv4.1: Defer bumping the slot sequence number until we free the slot
For operations like OPEN or LAYOUTGET, which return recallable state (i.e. delegations and layouts) we want to enable the mechanism for resolving recall races in RFC5661 Section 2.10.6.3. To do so, we will want to defer bumping the slot's sequence number until we have finished processing the RPC results. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs4session.h')
-rw-r--r--fs/nfs/nfs4session.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4session.h b/fs/nfs/nfs4session.h
index fa75d7db3db3..f703b755351b 100644
--- a/fs/nfs/nfs4session.h
+++ b/fs/nfs/nfs4session.h
@@ -21,7 +21,8 @@ struct nfs4_slot {
unsigned long generation;
u32 slot_nr;
u32 seq_nr;
- unsigned int interrupted : 1;
+ unsigned int interrupted : 1,
+ seq_done : 1;
};
/* Sessions */