diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-06-26 01:12:03 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-07-06 02:11:07 +0300 |
commit | 837bb1d752d92ea4d870877ffbd6ec5cf76624b3 (patch) | |
tree | bc6efb2d8fff743b5dd56ed0848fa9f4f99c2e3c /arch/mn10300 | |
parent | 1e564d3dbd684a105582471cb9ff2aada64a9052 (diff) | |
download | linux-837bb1d752d92ea4d870877ffbd6ec5cf76624b3.tar.xz |
NFSv4.2: Fix writeback races in nfs4_copy_file_range
We need to ensure that any writes to the destination file are serialised
with the copy, meaning that the writeback has to occur under the inode lock.
Also relax the writeback requirement on the source, and rely on the
stateid checking to tell us if the source rebooted. Add the helper
nfs_filemap_write_and_wait_range() to call pnfs_sync_inode() as
is appropriate for pNFS servers that may need a layoutcommit.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'arch/mn10300')
0 files changed, 0 insertions, 0 deletions