Re: [PATCH] io_uring: set error code to be ENOMEM when io_alloc_async_ctx() fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux