diff options
author | Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com> | 2020-06-15 20:06:37 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-06-17 20:49:01 +0200 |
commit | 2d7d67920e5c8e0854df23ca77da2dd5880ce5dd (patch) | |
tree | 9d004dc863800d27fe6f6e9870cc28bb1dfed43a /fs/io_uring.c | |
parent | io_uring: cancel by ->task not pid (diff) | |
download | linux-2d7d67920e5c8e0854df23ca77da2dd5880ce5dd.tar.xz linux-2d7d67920e5c8e0854df23ca77da2dd5880ce5dd.zip |
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 <xiaoguang.wang@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index e17df662c191..eb3797714539 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) |