diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-27 01:48:26 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-03-02 05:23:06 +0100 |
commit | 92d64e47b67b5e7fe1b5358402ab222a32ec3479 (patch) | |
tree | e8661c3d70f6074559d7c4da3e5c195d3ce18ae0 /fs/nfs/inode.c | |
parent | NFS: Remove size hack in nfs_inode_attrs_need_update() (diff) | |
download | linux-92d64e47b67b5e7fe1b5358402ab222a32ec3479.tar.xz linux-92d64e47b67b5e7fe1b5358402ab222a32ec3479.zip |
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 '')
-rw-r--r-- | fs/nfs/inode.c | 1 |
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); |