aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-runner
diff options
context:
space:
mode:
authorRich Ercolani <[email protected]>2021-09-20 13:30:50 -0400
committerGitHub <[email protected]>2021-09-20 10:30:50 -0700
commit59eab1093a361ca76849ca76b2ec079c8736e8e3 (patch)
tree60fb341fef9c77919f5de628b579a41937608503 /tests/test-runner
parent1d901c3ee5965e9b3b4c33cd40942bcf9df2531a (diff)
Handle partial reads in zfs_read
Currently, dmu_read_uio_dnode can read 64K of a requested 1M in one loop, get EFAULT back from zfs_uiomove() (because the iovec only holds 64k), and return EFAULT, which turns into EAGAIN on the way out. EAGAIN gets interpreted as "I didn't read anything", the caller tries again without consuming the 64k we already read, and we're stuck. This apparently works on newer kernels because the caller which breaks on older Linux kernels by happily passing along a 1M read request and a 64k iovec just requests 64k at a time. With this, we now won't return EFAULT if we got a partial read. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rich Ercolani <[email protected]> Closes #12370 Closes #12509 Closes #12516
Diffstat (limited to 'tests/test-runner')
0 files changed, 0 insertions, 0 deletions