From: Pavel Begunkov Date: Thu, 24 Aug 2023 22:53:30 +0000 (+0100) Subject: io_uring: force inline io_fill_cqe_req X-Git-Tag: v6.6.7~2069^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=093a650b757210bc856ca7f5349fb5a4bb9d4bd6;p=platform%2Fkernel%2Flinux-starfive.git io_uring: force inline io_fill_cqe_req There are only 2 callers of io_fill_cqe_req left, and one of them is extremely hot. Force inline the function. Signed-off-by: Pavel Begunkov Link: https://lore.kernel.org/r/ffce4fc5e3521966def848a4d930586dfe33ae11.1692916914.git.asml.silence@gmail.com Signed-off-by: Jens Axboe --- diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index 07fd185..547c305 100644 --- a/io_uring/io_uring.h +++ b/io_uring/io_uring.h @@ -132,7 +132,8 @@ static inline bool io_get_cqe(struct io_ring_ctx *ctx, struct io_uring_cqe **ret return io_get_cqe_overflow(ctx, ret, false); } -static inline bool io_fill_cqe_req(struct io_ring_ctx *ctx, struct io_kiocb *req) +static __always_inline bool io_fill_cqe_req(struct io_ring_ctx *ctx, + struct io_kiocb *req) { struct io_uring_cqe *cqe;