io_uring: don't batch task put on reqs free
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 23 Jun 2023 11:23:25 +0000 (12:23 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Jun 2023 14:19:39 +0000 (08:19 -0600)
commit2fdd6fb5ff958a0f6b403e3f3ffd645b60b2a2b2
tree9da2e89bb4eefab9700cc21c662a9803683b8b53
parent5a754dea27fb91a418f7429e24479e4184dee2e3
io_uring: don't batch task put on reqs free

We're trying to batch io_put_task() in io_free_batch_list(), but
considering that the hot path is a simple inc, it's most cerainly and
probably faster to just do io_put_task() instead of task tracking.

We don't care about io_put_task_remote() as it's only for IOPOLL
where polling/waiting is done by not the submitter task.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4a7ef7dce845fe2bd35507bf389d6bd2d5c1edf0.1687518903.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c