Use the epoll-based client in qemu_driver when io_uring isn't available #151

Open
koolkhel wants to merge 1 commits from koolkhel/vitastor:qemu-nouring-exit into master

1 Commits

Author SHA1 Message Date
6b28914352 Use the epoll-based client in qemu_driver when io_uring isn't available
Without io_uring the driver created the client with
vitastor_c_create_qemu(), which registers every OSD socket in QEMU's
AioContext. It takes no options, so client_exit_on_error=0 couldn't be
passed and a client start error (for example an unreachable etcd) did
exit(1) in the QEMU process. And the AioContext is level-triggered,
while the messenger works with edge-triggered events.

Create the client with vitastor_c_create_epoll_json() from the same
options instead and register only its epoll descriptor in the
AioContext, through the code already used for the io_uring eventfd.
Writeback stays disabled in this mode.
2026-11-23 01:43:48 +03:00