Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring: remove async/poll related provided buffer recycles

These aren't necessary anymore, get rid of them.

Link: https://lore.kernel.org/r/20250821020750.598432-13-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>

-6
-2
io_uring/io_uring.c
··· 2025 2025 2026 2026 switch (io_arm_poll_handler(req, 0)) { 2027 2027 case IO_APOLL_READY: 2028 - io_kbuf_recycle(req, NULL, 0); 2029 2028 io_req_task_queue(req); 2030 2029 break; 2031 2030 case IO_APOLL_ABORTED: 2032 - io_kbuf_recycle(req, NULL, 0); 2033 2031 io_queue_iowq(req); 2034 2032 break; 2035 2033 case IO_APOLL_OK:
-4
io_uring/poll.c
··· 316 316 317 317 ret = io_poll_check_events(req, tw); 318 318 if (ret == IOU_POLL_NO_ACTION) { 319 - io_kbuf_recycle(req, NULL, 0); 320 319 return; 321 320 } else if (ret == IOU_POLL_REQUEUE) { 322 - io_kbuf_recycle(req, NULL, 0); 323 321 __io_poll_execute(req, 0); 324 322 return; 325 323 } ··· 683 685 req->flags &= ~(REQ_F_SINGLE_POLL | REQ_F_DOUBLE_POLL); 684 686 req->flags |= REQ_F_POLLED; 685 687 ipt.pt._qproc = io_async_queue_proc; 686 - 687 - io_kbuf_recycle(req, NULL, issue_flags); 688 688 689 689 ret = __io_arm_poll_handler(req, &apoll->poll, &ipt, mask, issue_flags); 690 690 if (ret)