projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec26c22
)
io_uring: force inline io_fill_cqe_req
author
Pavel Begunkov
<asml.silence@gmail.com>
Thu, 24 Aug 2023 22:53:30 +0000
(23:53 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 24 Aug 2023 23:16:19 +0000
(17:16 -0600)
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>
io_uring/io_uring.h
patch
|
blob
|
history
diff --git
a/io_uring/io_uring.h
b/io_uring/io_uring.h
index 07fd185064d29ac0b43df3fb6e95dfcb8de0bda0..547c30582fb8872b692b41dfc4986ffa257f808a 100644
(file)
--- 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;