[Bug 276002] nfscl: data corruption using copy_file_range
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 276002] nfscl: data corruption using copy_file_range"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Dec 2023 23:21:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276002 --- Comment #1 from Konstantin Belousov <kib@FreeBSD.org> --- Could you please try something along these lines: diff --git a/sys/fs/nfsclient/nfs_clvnops.c b/sys/fs/nfsclient/nfs_clvnops.c index a690e988b4b3..f86ecd53ad4e 100644 --- a/sys/fs/nfsclient/nfs_clvnops.c +++ b/sys/fs/nfsclient/nfs_clvnops.c @@ -3956,7 +3956,7 @@ nfs_copy_file_range(struct vop_copy_file_range_args *ap) if (error == 0) error = ncl_flush(invp, MNT_WAIT, curthread, 1, 0); if (error == 0) - error = ncl_flush(outvp, MNT_WAIT, curthread, 1, 0); + error = ncl_vinvalbuf(outvp, V_SAVE, curthread, 0); /* Do the actual NFSv4.2 RPC. */ ret = ret2 = 0; -- You are receiving this mail because: You are the assignee for the bug.