diff options
author | Luis Henriques <lhenriques@suse.com> | 2018-10-23 16:53:14 +0000 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-11-08 17:50:37 +0100 |
commit | c2c6d3ce0d9a1fae4472fc10755372d022a487a4 (patch) | |
tree | 6f540f39026f4c7eebfc471f0869ac0d304a5b0c /fs/lockd | |
parent | 651022382c7f8da46cb4872a545ee1da6d097d2a (diff) | |
download | linux-c2c6d3ce0d9a1fae4472fc10755372d022a487a4.tar.bz2 |
ceph: add destination file data sync before doing any remote copy
If we try to copy into a file that was just written, any data that is
remote copied will be overwritten by our buffered writes once they are
flushed. When this happens, the call to invalidate_inode_pages2_range
will also return a -EBUSY error.
This patch fixes this by also sync'ing the destination file before
starting any copy.
Fixes: 503f82a9932d ("ceph: support copy_file_range file operation")
Signed-off-by: Luis Henriques <lhenriques@suse.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/lockd')
0 files changed, 0 insertions, 0 deletions