HomeFreeBSD

Linux 6.5 compat: Use copy_splice_read instead of filemap_splice_read

Description

Linux 6.5 compat: Use copy_splice_read instead of filemap_splice_read

Using the filemap_splice_read function for the splice_read handler was
leading to occasional data corruption under certain circumstances. Favor
using copy_splice_read instead, which does not demonstrate the same
erroneous behavior under the tested failure cases.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Coleman Kane <ckane@colemankane.org>
Closes #15164

Details

Provenance
Coleman Kane <ckane@colemankane.org>Authored on Aug 8 2023, 10:42 PM
GitHub <noreply@github.com>Committed on Aug 8 2023, 10:42 PM
Parents
rG81500902578d: Move zinject from openzfs-zfs-test to openzfs-zfsutils
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG8ce2eba9e6a3: Linux 6.5 compat: Use copy_splice_read instead of filemap_splice_read (authored by Coleman Kane <ckane@colemankane.org>).Aug 8 2023, 10:42 PM