aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4xdr.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-20 18:10:30 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-12-06 00:30:17 +0100
commitda0507b7c95ccd4d9c86394eef42fe076032af30 (patch)
tree3cbbc9e94b85183e64f14a37732bd1011817032d /fs/nfs/nfs4xdr.c
parentNFSv4.1: Ensure that the client tracks the server target_highest_slotid (diff)
downloadlinux-dev-da0507b7c95ccd4d9c86394eef42fe076032af30.tar.xz
linux-dev-da0507b7c95ccd4d9c86394eef42fe076032af30.zip
NFSv4.1: Reset the sequence number for slots that have been deallocated
When the server tells us that it is dynamically resizing the session replay cache, we should reset the sequence number for those slots that have been deallocated. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4xdr.c')
-rw-r--r--fs/nfs/nfs4xdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index 05d34f1fcc19..a67040f51597 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -5550,8 +5550,8 @@ static int decode_sequence(struct xdr_stream *xdr,
dprintk("%s Invalid slot id\n", __func__);
goto out_err;
}
- /* highest slot id - currently not processed */
- dummy = be32_to_cpup(p++);
+ /* highest slot id */
+ res->sr_highest_slotid = be32_to_cpup(p++);
/* target highest slot id */
res->sr_target_highest_slotid = be32_to_cpup(p++);
/* result flags */