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

2025-06-23 Thread Eric Blake
On Thu, Jun 19, 2025 at 08:08:24PM -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 v2 08/12] aio-posix: gracefully handle io_uring_queue_init() failure

2025-06-19 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