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, 1 Feb 2021 17:02:42 +0000 (10:02 -0700)
commita38d68db6742c19a74141c0f56785ef67f51c504
tree2870ace1f49097891512fffa252ac11e1d2d116c
parent8662daec09edcdba2659799040aee1ba575c4799
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