Re: [RFC 08/11] aio-posix: gracefully handle io_uring_queue_init() failure

2025-06-03 Thread Stefan Hajnoczi
On Tue, Jun 03, 2025 at 08:05:58AM +0200, Markus Armbruster wrote: > Stefan Hajnoczi writes: > > > On Wed, May 28, 2025 at 05:12:14PM -0500, Eric Blake wrote: > >> On Wed, May 28, 2025 at 03:09:13PM -0400, Stefan Hajnoczi wrote: > >> > io_uring may not be available at runtime due to system polici

Re: [RFC 08/11] aio-posix: gracefully handle io_uring_queue_init() failure

2025-06-02 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Wed, May 28, 2025 at 05:12:14PM -0500, Eric Blake wrote: >> On Wed, May 28, 2025 at 03:09:13PM -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 fil

Re: [RFC 08/11] aio-posix: gracefully handle io_uring_queue_init() failure

2025-06-02 Thread Brian
On 6/2/25 4:20 PM, Stefan Hajnoczi wrote: On Mon, Jun 02, 2025 at 08:26:39AM -0400, Brian wrote: On 5/28/25 3:09 PM, 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

Re: [RFC 08/11] aio-posix: gracefully handle io_uring_queue_init() failure

2025-06-02 Thread Stefan Hajnoczi
On Mon, Jun 02, 2025 at 08:26:39AM -0400, Brian wrote: > On 5/28/25 3:09 PM, 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

Re: [RFC 08/11] aio-posix: gracefully handle io_uring_queue_init() failure

2025-06-02 Thread Brian
On 5/28/25 3:09 PM, 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 AioContext already has io_uring, then fai

Re: [RFC 08/11] aio-posix: gracefully handle io_uring_queue_init() failure

2025-05-29 Thread Stefan Hajnoczi
On Wed, May 28, 2025 at 05:12:14PM -0500, Eric Blake wrote: > On Wed, May 28, 2025 at 03:09:13PM -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 limit

Re: [RFC 08/11] aio-posix: gracefully handle io_uring_queue_init() failure

2025-05-28 Thread Eric Blake
On Wed, May 28, 2025 at 03:09:13PM -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

[RFC 08/11] aio-posix: gracefully handle io_uring_queue_init() failure

2025-05-28 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