io_uring: optimize io_uring_task layout
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 20 Jun 2022 14:27:35 +0000 (15:27 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 14:44:34 +0000 (08:44 -0600)
commit1a502b544790b060866f5b3b21f83f87468ca696
tree2a2b978d97f0f52898bef49ea6d3946acb013b4c
parent4916f55c4a594887d32ee28d109f56cf433d16cc
io_uring: optimize io_uring_task layout

task_work bits of io_uring_task are split into two cache lines causing
extra cache bouncing, place them into a separate cache line. Also move
the most used submission path fields closer together, so there are hot.

Cc: stable@vger.kernel.org # 5.15+
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/tctx.h