Commit c34398a8 authored by Dylan Yudaken's avatar Dylan Yudaken Committed by Jens Axboe

io_uring: remove __io_req_task_work_add

this is no longer needed as there is only one caller
Signed-off-by: default avatarDylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220622134028.2013417-3-dylany@fb.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ed5ccb3b
...@@ -1040,9 +1040,9 @@ void tctx_task_work(struct callback_head *cb) ...@@ -1040,9 +1040,9 @@ void tctx_task_work(struct callback_head *cb)
io_uring_drop_tctx_refs(current); io_uring_drop_tctx_refs(current);
} }
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)
{ {
struct io_uring_task *tctx = req->task->io_uring;
struct io_ring_ctx *ctx = req->ctx; struct io_ring_ctx *ctx = req->ctx;
struct io_wq_work_node *node; struct io_wq_work_node *node;
unsigned long flags; unsigned long flags;
...@@ -1080,13 +1080,6 @@ static void __io_req_task_work_add(struct io_kiocb *req, ...@@ -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) static void io_req_tw_post(struct io_kiocb *req, bool *locked)
{ {
io_req_complete_post(req); io_req_complete_post(req);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment