Skip to content

Commit 8096015

Browse files
committed
Merge tag 'io_uring-6.8-2024-02-16' of git://git.kernel.dk/linux
Pull io_uring fix from Jens Axboe: "Just a single fix for a regression in how overflow is handled for multishot accept requests" * tag 'io_uring-6.8-2024-02-16' of git://git.kernel.dk/linux: io_uring/net: fix multishot accept overflow handling
2 parents 3f9c1b3 + a37ee9e commit 8096015

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

io_uring/net.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ int io_accept(struct io_kiocb *req, unsigned int issue_flags)
13721372
* has already been done
13731373
*/
13741374
if (issue_flags & IO_URING_F_MULTISHOT)
1375-
ret = IOU_ISSUE_SKIP_COMPLETE;
1375+
return IOU_ISSUE_SKIP_COMPLETE;
13761376
return ret;
13771377
}
13781378
if (ret == -ERESTARTSYS)
@@ -1397,7 +1397,8 @@ int io_accept(struct io_kiocb *req, unsigned int issue_flags)
13971397
ret, IORING_CQE_F_MORE))
13981398
goto retry;
13991399

1400-
return -ECANCELED;
1400+
io_req_set_res(req, ret, 0);
1401+
return IOU_STOP_MULTISHOT;
14011402
}
14021403

14031404
int io_socket_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)

0 commit comments

Comments
 (0)