diff --git a/fs/io_uring.c b/fs/io_uring.c index 45461d3ba43d70563da74515b49fafe39ea8d7b0..1463d4f93d0c7ac7da10089671af85db350bfcf5 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1980,7 +1980,7 @@ static void io_complete_rw_iopoll(struct kiocb *kiocb, long res, long res2) if (kiocb->ki_flags & IOCB_WRITE) kiocb_end_write(req); - if (res != req->result) + if (res != -EAGAIN && res != req->result) req_set_fail_links(req); req->result = res; if (res != -EAGAIN)