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 next io_kiocb fetch in task_work running

We just reversed the task_work list and that will have touched requests
as well, just get rid of this optimization as it should not make a
difference anymore.

Signed-off-by: Jens Axboe <axboe@kernel.dk>

-3
-3
io_uring/io_uring.c
··· 1184 1184 struct io_kiocb *req = container_of(node, struct io_kiocb, 1185 1185 io_task_work.node); 1186 1186 1187 - prefetch(container_of(next, struct io_kiocb, io_task_work.node)); 1188 - 1189 1187 if (req->ctx != *ctx) { 1190 1188 ctx_flush_and_put(*ctx, ts); 1191 1189 *ctx = req->ctx; ··· 1406 1408 struct llist_node *next = node->next; 1407 1409 struct io_kiocb *req = container_of(node, struct io_kiocb, 1408 1410 io_task_work.node); 1409 - prefetch(container_of(next, struct io_kiocb, io_task_work.node)); 1410 1411 INDIRECT_CALL_2(req->io_task_work.func, 1411 1412 io_poll_task_func, io_req_rw_complete, 1412 1413 req, ts);