On 4/8/20 7:48 PM, Xiaoguang Wang wrote: > We should return ENOMEM for memory allocation failures, fix this > issue for io_alloc_async_ctx() calls. It's not uncommon to have out-of-memory turn into -EAGAIN for the application for runtime allocations, indicating that the application could feasibly try again and hope for a better outcome (maybe after freeing memory). The error code is also documented as such in the io_uring_enter.2 man page. -- Jens Axboe