Linux 6.5 compat: Use copy_splice_read instead of filemap_splice_read
commit58a707375fef23697cb029fbad0e7e92bc78025b
authorColeman Kane <ckane@colemankane.org>
Tue, 8 Aug 2023 22:42:32 +0000 (8 18:42 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 19 Sep 2023 15:50:01 +0000 (19 08:50 -0700)
treeef57093c00f8e5eb6edce33f1298f9e5abb56ef3
parent5a22de144abf2829bc8112e17a7a7e542da53dc5
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
config/kernel-filemap-splice-read.m4
config/kernel.m4
module/os/linux/zfs/zpl_file.c