]> www.infradead.org Git - users/hch/block.git/commitdiff
io_uring: move provided buffer state closer to submit state
authorJens Axboe <axboe@kernel.dk>
Sun, 1 May 2022 17:57:06 +0000 (11:57 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 5 May 2022 23:17:33 +0000 (17:17 -0600)
The timeout and other items that follow are less hot, so let's move the
provided buffer state above that.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c

index 87605053d566e3944224712a9e7d6e6de7e5af57..4b7a9b7493adeac610c1c1fab10d8d37038090c9 100644 (file)
@@ -410,12 +410,14 @@ struct io_ring_ctx {
                struct io_mapped_ubuf   **user_bufs;
 
                struct io_submit_state  submit_state;
-               struct list_head        timeout_list;
-               struct list_head        ltimeout_list;
-               struct list_head        cq_overflow_list;
+
                struct io_buffer_list   *io_bl;
                struct xarray           io_bl_xa;
                struct list_head        io_buffers_cache;
+
+               struct list_head        timeout_list;
+               struct list_head        ltimeout_list;
+               struct list_head        cq_overflow_list;
                struct list_head        apoll_cache;
                struct xarray           personalities;
                u32                     pers_next;