diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-09-10 08:57:04 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-09-10 09:34:44 -0600 |
commit | 90bfb28d5fa8127a113a140c9791ea0b40ab156a (patch) | |
tree | 76dedcfc91d10428cde50687ef103f385508b78c /io_uring/rw.c | |
parent | c0a9d496e0fece67db777bd48550376cf2960c47 (diff) |
io_uring/rw: drop -EOPNOTSUPP check in __io_complete_rw_common()
A recent change ensured that the necessary -EOPNOTSUPP -> -EAGAIN
transformation happens inline on both the reader and writer side,
and hence there's no need to check for both of these anymore on
the completion handler side.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rw.c')
-rw-r--r-- | io_uring/rw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/io_uring/rw.c b/io_uring/rw.c index f4d885b7c2d2..f023ff49c688 100644 --- a/io_uring/rw.c +++ b/io_uring/rw.c @@ -467,8 +467,7 @@ static void io_req_io_end(struct io_kiocb *req) static bool __io_complete_rw_common(struct io_kiocb *req, long res) { if (unlikely(res != req->cqe.res)) { - if ((res == -EAGAIN || res == -EOPNOTSUPP) && - io_rw_should_reissue(req)) { + if (res == -EAGAIN && io_rw_should_reissue(req)) { /* * Reissue will start accounting again, finish the * current cycle. |