diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-27 03:48:26 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-03-02 07:23:06 +0300 |
commit | 92d64e47b67b5e7fe1b5358402ab222a32ec3479 (patch) | |
tree | e8661c3d70f6074559d7c4da3e5c195d3ce18ae0 /fs | |
parent | 00fb4c9f8421c9aac3947d36ffe8e049b95f7ab1 (diff) | |
download | linux-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.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); |