Re: [PATCH v2] io_uring: add flag to not fail link after timeout

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

 



On 10/2/21 2:44 AM, Pavel Begunkov wrote:
> For some reason non-off IORING_OP_TIMEOUT always fails links, it's
> pretty inconvenient and unnecessary limits chaining after it to hard
> linking, which is far from ideal, e.g. doesn't pair well with timeout
> cancellation. Prevent it and treat -ETIME as success.

That seems like a sane addition, but I'm not a huge fan of the

#define IORING_TIMEOUT_DONT_FAIL	(1U << 5)

name, as it isn't very descriptive. Don't fail what? Maybe

#define IORING_TIMEOUT_ETIME_SUCCESS

instead? At least that tells the story of -ETIME being considered
success, hence not breaking a link.

-- 
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