Re: [PATCH 1/2] io_uring/rw: fix link failure on successful pipe short reads
Jens Axboe <[email protected]>
| Newsgroups | org.kernel.vger.io-uring |
|---|---|
| Message-ID | <[email protected]> |
On 6/10/26 7:22 PM, Yang Xiuwei wrote: > __io_read() treats a short read on pipes and sockets as success and > returns without filling the iov. However, __io_complete_rw_common() > compared the transfer length against the original iov size and set > REQ_F_FAIL when they did not match. That incorrectly failed linked > requests behind a successful head request, for example a nop after a > naturally disarmed link timeout. > > Treat short reads and writes on non-regular files as success in > __io_complete_rw_common(), matching the issue path. Not sure I follow - the "short read/write is an IOSQE_IO_LINK failure" is widely documented. So not sure I agree with this approach. -- Jens Axboe