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)
commit9b46571142e47503ed4f3ae3be5ed3968d8cb9cc
treef42817d11f994bd1c4faeaa60aa0bf5603769be9
parent9e138a48345427fa42f6076396ea069cebf3c08f
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