io_uring: optimise ctx flags layout
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 16 Jan 2023 16:49:00 +0000 (16:49 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 29 Jan 2023 22:17:41 +0000 (15:17 -0700)
commit632ffe0956740ba56ae3f83778f3bf97edd57c69
tree1d6c197407de82067ffccc746993733d486b2cc2
parent31f084b7b0288fd51740b1e1efdb0ff61fb81e48
io_uring: optimise ctx flags layout

There may be different cost for reeading just one byte or more, so it's
benificial to keep ctx flag bits that we access together in a single
byte. That affected code generation of __io_cq_unlock_post_flush() and
removed one memory load.

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