diff options
author | Olga Kornievskaia <kolga@netapp.com> | 2020-09-16 09:07:54 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2020-09-16 12:25:14 -0400 |
commit | 16abd2a0c124a6c3543c88ca4c53c997c9fb4114 (patch) | |
tree | 32365b41de84b35ef68d77894bbe1e4355991517 /fs/nfs/flexfilelayout/flexfilelayout.c | |
parent | d33030e2ee3508d65db5644551435310df86010e (diff) | |
download | linux-16abd2a0c124a6c3543c88ca4c53c997c9fb4114.tar.bz2 |
NFSv4.2: fix client's attribute cache management for copy_file_range
After client is done with the COPY operation, it needs to invalidate
its pagecache (as it did no reading or writing of the data locally)
and it needs to invalidate it's attributes just like it would have
for a read on the source file and write on the destination file.
Once the linux server started giving out read delegations to
read+write opens, the destination file of the copy_file range
started having delegations and not doing syncup on close of the
file leading to xfstest failures for generic/430,431,432,433,565.
v2: changing cache_validity needs to be protected by the i_lock.
Reported-by: Murphy Zhou <jencce.kernel@gmail.com>
Fixes: 2e72448b07dc ("NFS: Add COPY nfs operation")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/flexfilelayout/flexfilelayout.c')
0 files changed, 0 insertions, 0 deletions