diff options
author | Dylan Yudaken <dylany@fb.com> | 2022-06-22 15:40:22 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-25 02:39:15 +0200 |
commit | c34398a8c018e0d3d2d30b718d03c7290c696f51 (patch) | |
tree | 998e1197c995ec3661c8b5911de3f533b3d2211e /io_uring/io_uring.c | |
parent | io_uring: remove priority tw list optimisation (diff) | |
download | linux-c34398a8c018e0d3d2d30b718d03c7290c696f51.tar.xz linux-c34398a8c018e0d3d2d30b718d03c7290c696f51.zip |
io_uring: remove __io_req_task_work_add
this is no longer needed as there is only one caller
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220622134028.2013417-3-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r-- | io_uring/io_uring.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index d21d0fc3645b..bf7ca2b279d3 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -1040,9 +1040,9 @@ void tctx_task_work(struct callback_head *cb) io_uring_drop_tctx_refs(current); } -static void __io_req_task_work_add(struct io_kiocb *req, - struct io_uring_task *tctx) +void io_req_task_work_add(struct io_kiocb *req) { + struct io_uring_task *tctx = req->task->io_uring; struct io_ring_ctx *ctx = req->ctx; struct io_wq_work_node *node; unsigned long flags; @@ -1080,13 +1080,6 @@ static void __io_req_task_work_add(struct io_kiocb *req, } } -void io_req_task_work_add(struct io_kiocb *req) -{ - struct io_uring_task *tctx = req->task->io_uring; - - __io_req_task_work_add(req, tctx); -} - static void io_req_tw_post(struct io_kiocb *req, bool *locked) { io_req_complete_post(req); |