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;
}
}
-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);