Skip to content

Commit

Permalink
io_uring: move provided buffer state closer to submit state
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jens Axboe committed May 9, 2022
1 parent a4f8d94 commit 660cbfa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fs/io_uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 660cbfa

Please sign in to comment.