]> git.proxmox.com Git - mirror_zfs.git/commit
Fix occasional rsend test crashes
authorPaul Dagnelie <pcd@delphix.com>
Wed, 20 Sep 2023 23:39:38 +0000 (16:39 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Sep 2023 23:13:20 +0000 (16:13 -0700)
commit729507d309d4573868855eca04f8522cc120f7d5
treea3e133f04374196a15ec64556e0ddabfb1af108a
parent3af63683fe07465fd96827cab0d946cbdaba6f73
Fix occasional rsend test crashes

We have occasional crashes in the rsend tests. Debugging revealed
that this is because the send_worker thread is getting EINTR from
splice(). This happens when a non-fatal signal is received during
the syscall. We should retry the syscall, rather than exiting failure.
Tweak the loop to only break if the splice is finished or we receive
a non-EINTR error.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ahelenia ZiemiaƄska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #15273
lib/libzfs_core/libzfs_core.c