diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-04-15 11:31:14 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-04-16 09:47:08 -0600 |
commit | a7be7c23cfdd2cb57609fd2d607923a9cb2a305d (patch) | |
tree | 7793dfe80fe47811b6eb2778821de91159eee926 /fs/io_uring.c | |
parent | 75652a30ff67539999148859da071ede862090ca (diff) | |
download | lwn-a7be7c23cfdd2cb57609fd2d607923a9cb2a305d.tar.gz lwn-a7be7c23cfdd2cb57609fd2d607923a9cb2a305d.zip |
io_uring: fix merge error for async resubmit
A hand-edit while applying this patch on top of a new base resulted in
a reverted check for re-issue, resulting in spurious -EAGAIN errors.
Fixes: 8c130827f417 ("io_uring: don't alter iopoll reissue fail ret code")
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 10b2367138be..55892e0227dd 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2738,7 +2738,7 @@ static void kiocb_done(struct kiocb *kiocb, ssize_t ret, if (check_reissue && req->flags & REQ_F_REISSUE) { req->flags &= ~REQ_F_REISSUE; - if (!io_resubmit_prep(req)) { + if (io_resubmit_prep(req)) { req_ref_get(req); io_queue_async_work(req); } else { |