io_uring: reshuffle io_submit_state bits
struct io_submit_state's ->free_list and ->link are hotter and smaller than ->plug, place them first. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/6ad3c15849f50b27ad012c042c73e6e069d22df7.1633532552.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
756ab7c0ec
commit
5a158c6b0d
|
@ -308,19 +308,15 @@ struct io_submit_link {
|
|||
};
|
||||
|
||||
struct io_submit_state {
|
||||
struct blk_plug plug;
|
||||
/* inline/task_work completion list, under ->uring_lock */
|
||||
struct io_wq_work_node free_list;
|
||||
/* batch completion logic */
|
||||
struct io_wq_work_list compl_reqs;
|
||||
struct io_submit_link link;
|
||||
|
||||
bool plug_started;
|
||||
bool need_plug;
|
||||
|
||||
/*
|
||||
* Batch completion logic
|
||||
*/
|
||||
struct io_wq_work_list compl_reqs;
|
||||
|
||||
/* inline/task_work completion list, under ->uring_lock */
|
||||
struct io_wq_work_node free_list;
|
||||
struct blk_plug plug;
|
||||
};
|
||||
|
||||
struct io_ring_ctx {
|
||||
|
|
Loading…
Reference in New Issue