io_uring: avoid indirect function calls for the hottest task_work
authorJens Axboe <axboe@kernel.dk>
Fri, 2 Jun 2023 14:41:46 +0000 (08:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 Jun 2023 14:55:37 +0000 (08:55 -0600)
commitc92fcfc2bab54451c4f1481755ea244f413455cb
treec4a1474020ef5cf5138b5b34c5f35476ce8a1d49
parentf026be0e1e881e3395c3d5418ffc8c2a2203c3f3
io_uring: avoid indirect function calls for the hottest task_work

We use task_work for a variety of reasons, but doing completions or
triggering rety after poll are by far the hottest two. Use the indirect
funtion call wrappers to avoid the indirect function call if
CONFIG_RETPOLINE is set.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/poll.c
io_uring/poll.h
io_uring/rw.c
io_uring/rw.h