linux/io_uring
Pavel Begunkov 6ec9afc7f4 io_uring: remove io_free_req_tw
Request completion is a very hot path in general, but there are 3 places
that can be doing it: io_free_batch_list(), io_req_complete_post() and
io_free_req_tw().

io_free_req_tw() is used rather marginally and we don't care about it.
Killing it can help to clean up and optimise the left two, do that by
replacing it with io_req_task_complete().

There are two things to consider:
1) io_free_req() is called when all refs are put, so we need to reinit
   references. The easiest way to do that is to clear REQ_F_REFCOUNT.
2) We also don't need a cqe from it, so silence it with REQ_F_CQE_SKIP.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/434a2be8f33d474ad888ce1c17fe5ea7bbcb2a55.1687518903.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2023-06-23 08:19:39 -06:00
..
2023-06-23 08:19:39 -06:00
2023-06-20 09:36:22 -06:00
2023-04-03 07:16:15 -06:00
2023-04-26 12:40:31 -07:00
2022-12-07 06:47:13 -07:00
2023-06-07 14:59:22 -06:00
2022-07-24 18:39:11 -06:00
2023-05-04 08:19:05 -06:00
2023-01-29 15:17:41 -07:00
2023-06-07 14:59:22 -06:00
2022-07-24 18:39:14 -06:00
2023-06-07 14:59:22 -06:00