io_uring: inline io_req_task_work_add()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 11 Nov 2022 16:54:08 +0000 (16:54 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 21 Nov 2022 14:44:18 +0000 (07:44 -0700)
commite52d2e583e4ad1d5d0b804d79c2b8752eb0e5ceb
tree8b6e35dde6b262152c7e01f59e2f6e13ae791395
parent23a6c9ac4dbd7cccf5b909e78aa84192b65f2833
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>
io_uring/io_uring.c
io_uring/io_uring.h