io_uring: refactor io_put_task helpers
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 23 Jan 2023 14:37:17 +0000 (14:37 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:17:41 +0000 (15:17 -0700)
commit5afa4650713918e60865ed42d9439e82f6d24773
tree5b37a8aa18b5903a5e91c80326867ec7dfd80437
parentc8576f3e612d3c5b01d434ae296b9b76d7907708
io_uring: refactor io_put_task helpers

Add a helper for putting refs from the target task context, rename
__io_put_task() and add a couple of comments around. Use the remote
version for __io_req_complete_post(), the local is only needed for
__io_submit_flush_completions().

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