From: Jens Axboe Date: Wed, 4 Jan 2023 20:49:54 +0000 (-0700) Subject: io_uring: move 'poll_multi_queue' bool in io_ring_ctx X-Git-Tag: v6.6.17~5675^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59b745bb4e0bd445366c45b8df6b51b69134f4f5;p=platform%2Fkernel%2Flinux-rpi.git io_uring: move 'poll_multi_queue' bool in io_ring_ctx The cacheline section holding this variable has two gaps, where one is caused by this bool not packing well with structs. This causes it to blow into the next cacheline. Move the variable, shrinking io_ring_ctx by a full cacheline in size. Signed-off-by: Jens Axboe --- diff --git a/include/linux/io_uring_types.h b/include/linux/io_uring_types.h index dcd8a56..128a67a 100644 --- a/include/linux/io_uring_types.h +++ b/include/linux/io_uring_types.h @@ -292,6 +292,8 @@ struct io_ring_ctx { struct { spinlock_t completion_lock; + bool poll_multi_queue; + /* * ->iopoll_list is protected by the ctx->uring_lock for * io_uring instances that don't use IORING_SETUP_SQPOLL. @@ -300,7 +302,6 @@ struct io_ring_ctx { */ struct io_wq_work_list iopoll_list; struct io_hash_table cancel_table; - bool poll_multi_queue; struct llist_head work_llist;