io_uring: refactor io_req_task_complete()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 16 Jun 2022 09:21:59 +0000 (10:21 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:44:10 +0000 (08:44 -0600)
commitacb01604de22c13a44b037d7a0499902afcf4a06
tree3bdb07a5b9c322210a5e77428c74cd056cc80d56
parente6eda5e30552c639daa0a0517d16959c2e71ab99
io_uring: refactor io_req_task_complete()

Clean up io_req_task_complete() and deduplicate io_put_kbuf() calls.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/ae3148ac7eb5cce3e06895cde306e9e959d6f6ae.1655371007.git.asml.silence@gmail.com
Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c