FreeBSD Bugzilla – Attachment 248770 Details for
Bug 276002
nfscl: data corruption using both copy_file_range and mmap'd I/O
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Force VOP_WRITE() in VOP_PUTPAGES to be done synchronously
msync.patch (text/plain), 550 bytes, created by
Rick Macklem
on 2024-02-26 23:23:45 UTC
(
hide
)
Description:
Force VOP_WRITE() in VOP_PUTPAGES to be done synchronously
Filename:
MIME Type:
Creator:
Rick Macklem
Created:
2024-02-26 23:23:45 UTC
Size:
550 bytes
patch
obsolete
>--- sys/fs/nfsclient/nfs_clbio.c.msync 2024-02-17 06:58:08.741029000 -0800 >+++ sys/fs/nfsclient/nfs_clbio.c 2024-02-26 13:37:32.367401000 -0800 >@@ -335,8 +335,9 @@ ncl_putpages(struct vop_putpages_args *ap) > uio.uio_rw = UIO_WRITE; > uio.uio_td = td; > >- error = VOP_WRITE(vp, &uio, vnode_pager_putpages_ioflags(ap->a_sync), >+ error = VOP_WRITE(vp, &uio, vnode_pager_putpages_ioflags(ap->a_sync | VM_PAGER_PUT_SYNC), > cred); >+if (error != 0) printf("aft putpages=%d\n", error); > crfree(cred); > > if (error == 0 || !nfs_keep_dirty_on_error) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 276002
:
247343
|
247346
|
247360
|
247424
|
248653
| 248770 |
248807
|
249298
|
250535