aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2022-06-15 17:33:48 +0100
committerJens Axboe <[email protected]>2022-07-24 18:39:12 -0600
commitb25436038f6cc20c3198792cbfab8a312d09282e (patch)
tree165c18aa847f88466ee5fe1d38460c9671a1234f
parent5ff4fdffad483dad815b3701be8b82c5a07b156e (diff)
io_uring: move defer_list to slow data
draining is slow path, move defer_list to the end where slow data lives inside the context. Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/e16379391ca72b490afdd24e8944baab849b4a7b.1655310733.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r--io_uring/io_uring_types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/io_uring/io_uring_types.h b/io_uring/io_uring_types.h
index fb87af5fd8e7..ee5827356970 100644
--- a/io_uring/io_uring_types.h
+++ b/io_uring/io_uring_types.h
@@ -162,7 +162,6 @@ struct io_ring_ctx {
struct io_uring_sqe *sq_sqes;
unsigned cached_sq_head;
unsigned sq_entries;
- struct list_head defer_list;
/*
* Fixed resources fast path, should be accessed only under
@@ -274,8 +273,12 @@ struct io_ring_ctx {
struct work_struct exit_work;
struct list_head tctx_list;
struct completion ref_comp;
+
+ /* io-wq management, e.g. thread count */
u32 iowq_limits[2];
bool iowq_limits_set;
+
+ struct list_head defer_list;
};
};