summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-02-27 03:48:26 +0300
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-03-02 07:23:06 +0300
commit92d64e47b67b5e7fe1b5358402ab222a32ec3479 (patch)
treee8661c3d70f6074559d7c4da3e5c195d3ce18ae0 /fs
parent00fb4c9f8421c9aac3947d36ffe8e049b95f7ab1 (diff)
downloadlinux-92d64e47b67b5e7fe1b5358402ab222a32ec3479.tar.xz
NFS: Fix nfs_post_op_update_inode() to set an attribute barrier
nfs_post_op_update_inode() is called after a self-induced attribute update. Ensure that it also sets the barrier. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Tested-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index fef65d1e024e..c66c1df467f4 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1475,6 +1475,7 @@ int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr)
int status;
spin_lock(&inode->i_lock);
+ nfs_fattr_set_barrier(fattr);
status = nfs_post_op_update_inode_locked(inode, fattr);
spin_unlock(&inode->i_lock);