[Bug 276002] nfscl: data corruption using both copy_file_range and mmap'd I/O

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 30 Dec 2023 16:58:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276002

--- Comment #21 from Rick Macklem <rmacklem@FreeBSD.org> ---
Created attachment 247360
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247360&action=edit
Don't clear the dirty bits on pages being written through the buffer cache

You could try this completely untested patch.
The last time we played this game, the problem
was that a call to vfs_busy_pages() cleared the
dirty bits when it should not have done so.

This is the only other place where the NFS client
code does the same thing.

Note that I think kib@'s copy_file_range patch is
needed.  I plan to do some testing of it, to see if
I can break copy_file_range() without the patch and
without using mmap'd I/O.

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