]> 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)
committerGitHub <noreply@github.com>
Wed, 20 Sep 2023 23:39:38 +0000 (16:39 -0700)
commit6d9bc3ec9f177a278110ab004aba3e40ad421a0c
treea123040fdea4fc43ebb0cb920e1289f6efa94332
parent90149552b1ee50c2915305f869cbf09da271e186
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