io_uring: move pinning out of io_req_local_work_add
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 6 Apr 2023 13:20:07 +0000 (14:20 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Apr 2023 22:22:07 +0000 (16:22 -0600)
commitab1c590f5c9b96d8d8843d351aed72469f8f2ef0
treebba104919bc82909e098b2d0018d2c2c383f552d
parent758d5d64b619ddbbf96a5605d8d5a919aafaafab
io_uring: move pinning out of io_req_local_work_add

Move ctx pinning from io_req_local_work_add() to the caller, looks
better and makes working with the code a bit easier.

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