summaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.c
diff options
context:
space:
mode:
authorJeff Layton2016-05-17 18:28:40 +0200
committerAnna Schumaker2016-05-17 21:48:09 +0200
commit6675528380f8b7fffa82047211d8352dc6797321 (patch)
tree913a2fabf93fb27185379e3fd5fdc07e3480ad6f /fs/nfs/pnfs.c
parentpnfs: don't merge new ff lsegs with ones that have LAYOUTRETURN bit set (diff)
downloadkernel-qcow2-linux-6675528380f8b7fffa82047211d8352dc6797321.tar.gz
kernel-qcow2-linux-6675528380f8b7fffa82047211d8352dc6797321.tar.xz
kernel-qcow2-linux-6675528380f8b7fffa82047211d8352dc6797321.zip
pnfs: record sequence in pnfs_layout_segment when it's created
In later patches, we're going to teach the client to be more selective about how it returns layouts. This means keeping a record of what the stateid's seqid was at the time that the server handed out a layout segment. Signed-off-by: Jeff Layton <jeff.layton@primarydata.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r--fs/nfs/pnfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index faea98281c75..c09ced88bd38 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -1697,6 +1697,7 @@ pnfs_layout_process(struct nfs4_layoutget *lgp)
init_lseg(lo, lseg);
lseg->pls_range = res->range;
+ lseg->pls_seq = be32_to_cpu(res->stateid.seqid);
spin_lock(&ino->i_lock);
if (pnfs_layoutgets_blocked(lo)) {