]> www.infradead.org Git - users/dwmw2/linux.git/commit
io_uring: keep SQ pointers in a single cacheline
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 14 Jun 2021 22:37:20 +0000 (23:37 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jun 2021 21:38:39 +0000 (15:38 -0600)
commitc7af47cf0fab5bad1fb8b250dfab8efc1f991559
treeab4b1a0991aa2be4c0f221e7e71980e4d4b66f2f
parentb1b2fc3574a6a94a1ab90271a7620345c39dc01f
io_uring: keep SQ pointers in a single cacheline

sq_array and sq_sqes are always used together, however they are in
different cachelines, where the borderline is right before
cq_overflow_list is rather rarely touched. Move the fields together so
it loads only one cacheline.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/3ef2411a94874da06492506a8897eff679244f49.1623709150.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c