On Fri, 9 Sep 2022 12:11:49 +0100, Pavel Begunkov wrote: > We have a couple of problems, first reports of unexpected link breakage > for reads when cqe->res indicates that the IO was done in full. The > reason here is partial IO with retries. > > TL;DR; we compare the result in __io_complete_rw_common() against > req->cqe.res, but req->cqe.res doesn't store the full length but rather > the length left to be done. So, when we pass the full corrected result > via kiocb_done() -> __io_complete_rw_common(), it fails. > > [...] Applied, thanks! [1/1] io_uring/rw: fix short rw error handling commit: 4d9cb92ca41dd8e905a4569ceba4716c2f39c75a Best regards, -- Jens Axboe