Re: [PATCH] io_uring: add IORING_OP_NOP_FAIL

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

 



On 5/8/24 8:34 PM, Ming Lei wrote:
> Add IORING_OP_NOP_FAIL so that it is easy to inject failure from
> userspace.
> 
> Like IORING_OP_NOP, the main use case is test, and it is very helpful
> for covering failure handling code in io_uring core change.

Rather than use a new opcode for this, why don't we just add it to
the existing NOP? I know we don't check for flags in currently, so
you would not know if it worked, but we could add that and just
backport that one-liner as well.

And if we had such a flag, the fail res could be passed in as well.

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