]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit672e2979145db031e3d4f3323b948fd4be3ea3c7
treee1d7c0c8371ef164c46630468aee11d8c4c711be
parent68ffcfd34d16e4e6c46de7c8a60747f94bc5f13d
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