summaryrefslogtreecommitdiffstats
path: root/io_uring/io_uring.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-03-28 12:38:44 -0600
committerJens Axboe <axboe@kernel.dk>2024-06-24 08:39:39 -0600
commitc3ac76f9ca7a621428851149bc56bfca0aacaef4 (patch)
tree1d10e888424ed968ba9a63703fa75c1c25e18467 /io_uring/io_uring.h
parentd57afd8bb7f2c4f0d86e9e9b276f7c3a7fedfc6d (diff)
downloadlinux-stable-c3ac76f9ca7a621428851149bc56bfca0aacaef4.tar.gz
linux-stable-c3ac76f9ca7a621428851149bc56bfca0aacaef4.tar.bz2
linux-stable-c3ac76f9ca7a621428851149bc56bfca0aacaef4.zip
io_uring: add remote task_work execution helper
All our task_work handling is targeted at the state in the io_kiocb itself, which is what it is being used for. However, MSG_RING rolls its own task_work handling, ignoring how that is usually done. In preparation for switching MSG_RING to be able to use the normal task_work handling, add io_req_task_work_add_remote() which allows the caller to pass in the target io_ring_ctx. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.h')
-rw-r--r--io_uring/io_uring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h
index cd43924eed04..7a8641214509 100644
--- a/io_uring/io_uring.h
+++ b/io_uring/io_uring.h
@@ -73,6 +73,8 @@ struct file *io_file_get_fixed(struct io_kiocb *req, int fd,
unsigned issue_flags);
void __io_req_task_work_add(struct io_kiocb *req, unsigned flags);
+void io_req_task_work_add_remote(struct io_kiocb *req, struct io_ring_ctx *ctx,
+ unsigned flags);
bool io_alloc_async_data(struct io_kiocb *req);
void io_req_task_queue(struct io_kiocb *req);
void io_req_task_complete(struct io_kiocb *req, struct io_tw_state *ts);