]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add generic callback_head helpers
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 Mar 2021 14:23:07 +0000 (14:23 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Mar 2021 15:32:40 +0000 (09:32 -0600)
commit4682126c1fa7ae8f99d6b3108f831873cbb495c7
treef42817d11f994bd1c4faeaa60aa0bf5603769be9
parent121966f760a853750abc73eb8010dc6a4e9b3fc6
io_uring: add generic callback_head helpers

We already have helpers to run/add callback_head but taking ctx and
working with ctx->exit_task_work. Extract generic versions of them
implemented in terms of struct callback_head, it will be used later.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c