https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276002

--- Comment #1 from Konstantin Belousov <k...@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.

Reply via email to