]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: partially uninline io_put_task()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 25 Mar 2022 11:52:15 +0000 (11:52 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 24 Apr 2022 23:34:19 +0000 (17:34 -0600)
commita927b426a94ef01a34c54723cc2cbc6e9b6c0f5b
treeaf378c71443eb447a2bc5966ceb604acfcf99b59
parent880f63a1433194e568339949d2e9e5a14085bd17
io_uring: partially uninline io_put_task()

In most cases io_put_task() is called from the submitter task and go
through a higly optimised fast path, which has to be inlined. The other
branch though is bulkier and we don't care about it as much because it
implies atomics and other heavy calls. Extract it into a helper, which
is expected not to be inlined.

[before] size ./fs/io_uring.o
   text    data     bss     dec     hex filename
  89328   13646       8  102982   19246 ./fs/io_uring.o
[after] size ./fs/io_uring.o
   text    data     bss     dec     hex filename
  89096   13646       8  102750   1915e ./fs/io_uring.o

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/dec213db0e0b8605132da81e0a0be687a4d140cb.1648209006.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c