Message ID | ffce4fc5e3521966def848a4d930586dfe33ae11.1692916914.git.asml.silence@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | caching and SQ/CQ optimisations | expand |
diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h index 07fd185064d2..547c30582fb8 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;
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 <asml.silence@gmail.com> --- io_uring/io_uring.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)