Files
mirror_zfs/module/os/linux/zfs
Brian Behlendorf dd487640b2 Linux 5.10 compat: restore custom uio_prefaultpages()
As part of commit 1c2358c1 the custom uio_prefaultpages() code
was removed in favor of using the generic kernel provided
iov_iter_fault_in_readable() interface.  Unfortunately, it
turns out that up until the Linux 4.7 kernel the function would
only ever fault in the first iovec of the iov_iter.  The result
being uiomove_iov() may hang waiting for the page.

This commit effectively restores the custom uio_prefaultpages()
pages code for Linux 4.9 and earlier kernels which contain the
troublesome version of iov_iter_fault_in_readable().

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #11463 
Closes #11484
2021-01-22 09:58:49 -08:00
..
2020-08-30 14:18:50 -07:00
2019-09-12 13:33:44 -07:00
2019-09-12 13:33:44 -07:00
2021-01-05 10:26:25 -08:00
2020-10-16 13:05:00 -07:00
2020-11-11 11:40:15 -08:00
2020-10-16 12:55:56 -07:00
2020-04-10 10:33:35 -07:00