summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs42proc.c
diff options
context:
space:
mode:
authorTrond Myklebust2017-04-29 16:10:17 +0200
committerTrond Myklebust2017-04-29 17:29:30 +0200
commit1f18b82c3437a398562e748c22fcd2f71c2e230c (patch)
tree97e948dd43a509e011585414fb5f600462ba9093 /fs/nfs/nfs42proc.c
parentpNFS: Don't send COMMITs to the DSes if the server invalidated our layout (diff)
downloadkernel-qcow2-linux-1f18b82c3437a398562e748c22fcd2f71c2e230c.tar.gz
kernel-qcow2-linux-1f18b82c3437a398562e748c22fcd2f71c2e230c.tar.xz
kernel-qcow2-linux-1f18b82c3437a398562e748c22fcd2f71c2e230c.zip
pNFS: Ensure we commit the layout if it has been invalidated
If the layout is being invalidated on the server, then we must invoke nfs_commit_inode() to ensure any commits to the DS get cleared out. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs42proc.c')
-rw-r--r--fs/nfs/nfs42proc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c
index c81c61971625..87f5b7b971ca 100644
--- a/fs/nfs/nfs42proc.c
+++ b/fs/nfs/nfs42proc.c
@@ -379,6 +379,7 @@ nfs42_layoutstat_done(struct rpc_task *task, void *calldata)
pnfs_mark_layout_stateid_invalid(lo, &head);
spin_unlock(&inode->i_lock);
pnfs_free_lseg_list(&head);
+ nfs_commit_inode(inode, 0);
} else
spin_unlock(&inode->i_lock);
break;