Re: [PATCH v3 08/12] aio-posix: gracefully handle io_uring_queue_init() failure

2025-07-23 Thread Eric Blake
On Mon, Jul 21, 2025 at 05:07:55PM -0400, Stefan Hajnoczi wrote: > io_uring may not be available at runtime due to system policies (e.g. > the io_uring_disabled sysctl) or creation could fail due to file > descriptor resource limits. > > Handle failure scenarios as follows: > > If another AioCont

[PATCH v3 08/12] aio-posix: gracefully handle io_uring_queue_init() failure

2025-07-21 Thread Stefan Hajnoczi
io_uring may not be available at runtime due to system policies (e.g. the io_uring_disabled sysctl) or creation could fail due to file descriptor resource limits. Handle failure scenarios as follows: If another AioContext already has io_uring, then fail AioContext creation so that the aio_add_sqe