diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-12-07 03:53:32 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-12-07 06:47:13 -0700 |
commit | d34b1b0b6779d4f5ee877b53cad90eef0f1cbe34 (patch) | |
tree | 645befb3b88531edde87ab8a1207c6fe9fe2ac2e /io_uring/rsrc.h | |
parent | 17add5cea2bbafea0d481f1a3ea9dea019a98ee9 (diff) |
io_uring: use tw for putting rsrc
Use task_work for completing rsrc removals, it'll be needed later for
spinlock optimisations.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/cbba5d53a11ee6fc2194dacea262c1d733c8b529.1670384893.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rsrc.h')
-rw-r--r-- | io_uring/rsrc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h index 81445a477622..2b8743645efc 100644 --- a/io_uring/rsrc.h +++ b/io_uring/rsrc.h @@ -53,6 +53,7 @@ struct io_mapped_ubuf { struct bio_vec bvec[]; }; +void io_rsrc_put_tw(struct callback_head *cb); void io_rsrc_put_work(struct work_struct *work); void io_rsrc_refs_refill(struct io_ring_ctx *ctx); void io_wait_rsrc_data(struct io_rsrc_data *data); |