Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Dec 2023 23:21:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 276002] nfscl: data corruption using copy_file_range
Message-ID:  <bug-276002-227-2VdM3cysEr@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-276002-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-276002-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276002

--- 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 =3D=3D 0)
                error =3D ncl_flush(invp, MNT_WAIT, curthread, 1, 0);
        if (error =3D=3D 0)
-               error =3D ncl_flush(outvp, MNT_WAIT, curthread, 1, 0);
+               error =3D ncl_vinvalbuf(outvp, V_SAVE, curthread, 0);

        /* Do the actual NFSv4.2 RPC. */
        ret =3D ret2 =3D 0;

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276002-227-2VdM3cysEr>