io_uring/rsrc: inline switch_start fast path
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 13 Apr 2023 14:28:11 +0000 (15:28 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 15 Apr 2023 20:44:57 +0000 (14:44 -0600)
commit2f2af35f8e5a1ed552ed02e47277d50092a2b9f6
tree2db31a557c74f122c74acab020e862c9aa768218
parent0b222eeb6514ba6c3457b667fa4f3645032e1fc9
io_uring/rsrc: inline switch_start fast path

Inline the part of io_rsrc_node_switch_start() that checks whether the
cache is empty or not, as most of the times it will have some number of
entries in there.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/9619c1717a0e01f22c5fce2f1ba2735f804da0f2.1681395792.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c
io_uring/rsrc.h