]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:41 +0000 (08:34 +0100)
commit311e996fb1815e9414e220800da0e21c970529ee
treefbc64395ec4c5993df5730d0fa5ad124ef21589a
parent7a3e6ebd1a4f8520a12b051adcf2fc46cb662ccc
io_uring: inline io_req_task_work_add()

[ Upstream commit 91ddcdb0b00cc270cb99579690c4663f49d9c80d ]

__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>
Stable-dep-of: 9621d4ce6d1d ("io_uring: always prep_async for drain requests")
Signed-off-by: Sasha Levin <sashal@kernel.org>
io_uring/io_uring.c
io_uring/io_uring.h