Re: [RFC 01/11] aio-posix: fix polling mode with fdmon-io_uring

2025-05-28 Thread Eric Blake
On Wed, May 28, 2025 at 03:09:06PM -0400, Stefan Hajnoczi wrote: > The io_uring(7) file descriptor monitor cannot enter polling mode > because it needs to submit a POLL_ADD SQE every time a file descriptor > becomes active. Submitting SQEs only happens in FDMonOps->wait() outside > of polling mode.

[RFC 01/11] aio-posix: fix polling mode with fdmon-io_uring

2025-05-28 Thread Stefan Hajnoczi
The io_uring(7) file descriptor monitor cannot enter polling mode because it needs to submit a POLL_ADD SQE every time a file descriptor becomes active. Submitting SQEs only happens in FDMonOps->wait() outside of polling mode. Fix this using the multi-shot mechanism introduced in Linux 5.13 and li