io_uring: help inlining of io_req_complete()
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 19 Jan 2021 13:32:45 +0000 (13:32 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 15:18:37 +0000 (08:18 -0700)
commit40f28478a3643b8bdd48b8c6ae3fb606de9bd1fe
treee3f81edf560420fa6b5bf0175fbb3b44d625a595
parent50bae2932671eb88c67c38f7356b9c36cc26457d
io_uring: help inlining of io_req_complete()

__io_req_complete() inlining is a bit weird, some compilers don't
optimise out the non-NULL branch of it even when called as
io_req_complete(). Help it a bit by extracting state and stateless
helpers out of __io_req_complete().

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c