Skip to content

Commit 90bfb28

Browse files
committed
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 <[email protected]>
1 parent c0a9d49 commit 90bfb28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

io_uring/rw.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,7 @@ static void io_req_io_end(struct io_kiocb *req)
467467
static bool __io_complete_rw_common(struct io_kiocb *req, long res)
468468
{
469469
if (unlikely(res != req->cqe.res)) {
470-
if ((res == -EAGAIN || res == -EOPNOTSUPP) &&
471-
io_rw_should_reissue(req)) {
470+
if (res == -EAGAIN && io_rw_should_reissue(req)) {
472471
/*
473472
* Reissue will start accounting again, finish the
474473
* current cycle.

0 commit comments

Comments
 (0)