summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStefan Hajnoczi2020-04-08 11:11:39 +0200
committerStefan Hajnoczi2020-04-09 16:55:06 +0200
commit636b836d5f4e36ceebb788e2e0d4724f7f9406e1 (patch)
tree93944141541d10969d8d4aba91068785271d2692 /include
parentMerge remote-tracking branch 'remotes/rth/tags/pull-rx-20200408' into staging (diff)
downloadqemu-636b836d5f4e36ceebb788e2e0d4724f7f9406e1.tar.gz
qemu-636b836d5f4e36ceebb788e2e0d4724f7f9406e1.tar.xz
qemu-636b836d5f4e36ceebb788e2e0d4724f7f9406e1.zip
aio-posix: signal-proof fdmon-io_uring
The io_uring_enter(2) syscall returns with errno=EINTR when interrupted by a signal. Retry the syscall in this case. It's essential to do this in the io_uring_submit_and_wait() case. My interpretation of the Linux v5.5 io_uring_enter(2) code is that it shouldn't affect the io_uring_submit() case, but there is no guarantee this will always be the case. Let's check for -EINTR around both APIs. Note that the liburing APIs have -errno return values. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20200408091139.273851-1-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions