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:00 +0000 (09:32 -0600)
commit3f62f5a7ed8b545c5aeb124e69b70964a35b655d
tree7ed31ff5d8d19ac005b7f7fd43ab705191c58a26
parent1bdd8b75b5e3e7ce06ada934e85982e795b38756
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