Subscribe to EPOLLOUT only while a send waits for it in no-io_uring mode #144

Open
koolkhel wants to merge 1 commits from koolkhel/vitastor:no-uring-epollout-on-demand into master

1 Commits

Author SHA1 Message Date
d33d4c41fa Subscribe to EPOLLOUT only while a send waits for it in no-io_uring mode
QEMU runs the fd handlers of a client without io_uring in a level-triggered
loop, so a permanent EPOLLOUT subscription calls the write handler on every
pass and an idle client spins at 100% CPU. Subscribe only when a send parks
on a full socket and unsubscribe on EPOLLOUT.
2026-11-21 12:01:27 +03:00