Skip to content

Commit

Permalink
io_uring: don't fail links for EAGAIN error in IOPOLL mode
Browse files Browse the repository at this point in the history
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: [email protected]
Signed-off-by: Xiaoguang Wang <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Xiaoguang Wang authored and axboe committed Jun 17, 2020
1 parent 801dd57 commit 2d7d679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/io_uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2d7d679

Please sign in to comment.