Skip to content

Commit 093a650

Browse files
isilenceaxboe
authored andcommitted
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 <asml.silence@gmail.com> Link: https://lore.kernel.org/r/ffce4fc5e3521966def848a4d930586dfe33ae11.1692916914.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent ec26c22 commit 093a650

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

io_uring/io_uring.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ static inline bool io_get_cqe(struct io_ring_ctx *ctx, struct io_uring_cqe **ret
132132
return io_get_cqe_overflow(ctx, ret, false);
133133
}
134134

135-
static inline bool io_fill_cqe_req(struct io_ring_ctx *ctx, struct io_kiocb *req)
135+
static __always_inline bool io_fill_cqe_req(struct io_ring_ctx *ctx,
136+
struct io_kiocb *req)
136137
{
137138
struct io_uring_cqe *cqe;
138139

0 commit comments

Comments
 (0)