From: Xiaoguang Wang Date: Mon, 15 Jun 2020 18:06:37 +0000 (+0800) Subject: io_uring: don't fail links for EAGAIN error in IOPOLL mode X-Git-Tag: v5.10.7~2285^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d7d67920e5c8e0854df23ca77da2dd5880ce5dd;p=platform%2Fkernel%2Flinux-rpi.git io_uring: don't fail links for EAGAIN error in IOPOLL mode In IOPOLL mode, for EAGAIN error, we'll try to submit io request again using io-wq, so don't fail rest of links if this io request has links. Cc: stable@vger.kernel.org Signed-off-by: Xiaoguang Wang Signed-off-by: Jens Axboe --- diff --git a/fs/io_uring.c b/fs/io_uring.c index e17df66..eb37977 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -1988,7 +1988,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)