summaryrefslogtreecommitdiff
path: root/io_uring/io_uring.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-11-11 19:54:08 +0300
committerJens Axboe <axboe@kernel.dk>2022-11-21 17:44:18 +0300
commite52d2e583e4ad1d5d0b804d79c2b8752eb0e5ceb (patch)
tree8b6e35dde6b262152c7e01f59e2f6e13ae791395 /io_uring/io_uring.c
parent23a6c9ac4dbd7cccf5b909e78aa84192b65f2833 (diff)
downloadlinux-e52d2e583e4ad1d5d0b804d79c2b8752eb0e5ceb.tar.xz
io_uring: inline io_req_task_work_add()
__io_req_task_work_add() is huge but marked inline, that makes compilers to generate lots of garbage. Inline the wrapper caller io_req_task_work_add() instead. before and after: text data bss dec hex filename 47347 16248 8 63603 f873 io_uring/io_uring.o text data bss dec hex filename 45303 16248 8 61559 f077 io_uring/io_uring.o Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/26dc8c28ca0160e3269ef3e55c5a8b917c4d4450.1668162751.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r--io_uring/io_uring.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index c770eed4d717..8f452dfb4f1c 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -1127,7 +1127,7 @@ static void io_req_local_work_add(struct io_kiocb *req)
__io_cqring_wake(ctx);
}
-static inline void __io_req_task_work_add(struct io_kiocb *req, bool allow_local)
+void __io_req_task_work_add(struct io_kiocb *req, bool allow_local)
{
struct io_uring_task *tctx = req->task->io_uring;
struct io_ring_ctx *ctx = req->ctx;
@@ -1159,11 +1159,6 @@ static inline void __io_req_task_work_add(struct io_kiocb *req, bool allow_local
}
}
-void io_req_task_work_add(struct io_kiocb *req)
-{
- __io_req_task_work_add(req, true);
-}
-
static void __cold io_move_task_work_from_local(struct io_ring_ctx *ctx)
{
struct llist_node *node;