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
Tony Hutter <hutter2@llnl.gov>Committed on Sep 11 2023, 11:34 PM
Parents
rG9b7f7f02e972: Linux 6.5 compat: replace generic_file_splice_read with filemap_splice_read
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGc74a17a498df: Linux 6.5 compat: Use copy_splice_read instead of filemap_splice_read (authored by Coleman Kane <ckane@colemankane.org>).Sep 11 2023, 11:34 PM