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>
Wed, 22 Jun 2022 17:32:34 +0000 (11:32 -0600)
commit9c7cbab2778399186538f0aac56936354aae4c12
tree75345477bb3972f89334b73362414afe481f1992
parent85f0b5fabbf88357b288cff16d95904e95719eac
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