io_uring: move multishot cqe cache in ctx
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 24 Aug 2023 22:53:36 +0000 (23:53 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Aug 2023 23:16:20 +0000 (17:16 -0600)
commit0aa7aa5f766933d4f91b22d9658cd688e1f15dab
tree099d4801e6657eb0f0663ffb149c73fb9e97ca9e
parentc9def23dde5238184777340ad811e4903f216a2d
io_uring: move multishot cqe cache in ctx

We cache multishot CQEs before flushing them to the CQ in
submit_state.cqe. It's a 16 entry cache totalling 256 bytes in the
middle of the io_submit_state structure. Move it out of there, it
should help with CPU caches for the submission state, and shouldn't
affect cached CQEs.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/dbe1f39c043ee23da918836be44fcec252ce6711.1692916914.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
io_uring/io_uring.c