io_uring: optimise io_req_find_next() fast check
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 30 Jun 2020 12:20:43 +0000 (15:20 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Jun 2020 15:32:04 +0000 (09:32 -0600)
commit3fa5e0f331280237af918ab2e7a160f5a68d3e7d
treee1d7c0c8371ef164c46630468aee11d8c4c711be
parent0be0b0e33b0bfd08264b108512e44b3907fe987b
io_uring: optimise io_req_find_next() fast check

gcc 9.2.0 compiles io_req_find_next() as a separate function leaving
the first REQ_F_LINK_HEAD fast check not inlined. Help it by splitting
out the check from the function.

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