diff options
author | Breno Leitao <leitao@debian.org> | 2023-02-23 08:43:52 -0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-03 07:16:12 -0600 |
commit | efba1a9e653e107577a48157b5424878c46f2285 (patch) | |
tree | 2a70cd4738906ed7ddf0187cfdc5e3b422cdb7c4 /include/linux/io_uring_types.h | |
parent | da64d6db3bd304d44d7ac1eb7f319a1cc7efd611 (diff) | |
download | linux-stable-efba1a9e653e107577a48157b5424878c46f2285.tar.gz linux-stable-efba1a9e653e107577a48157b5424878c46f2285.tar.bz2 linux-stable-efba1a9e653e107577a48157b5424878c46f2285.zip |
io_uring: Move from hlist to io_wq_work_node
Having cache entries linked using the hlist format brings no benefit, and
also requires an unnecessary extra pointer address per cache entry.
Use the internal io_wq_work_node single-linked list for the internal
alloc caches (async_msghdr and async_poll)
This is required to be able to use KASAN on cache entries, since we do
not need to touch unused (and poisoned) cache entries when adding more
entries to the list.
Suggested-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/r/20230223164353.2839177-2-leitao@debian.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/io_uring_types.h')
-rw-r--r-- | include/linux/io_uring_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/io_uring_types.h b/include/linux/io_uring_types.h index 00689c12f6ab..757105ebd8af 100644 --- a/include/linux/io_uring_types.h +++ b/include/linux/io_uring_types.h @@ -188,7 +188,7 @@ struct io_ev_fd { }; struct io_alloc_cache { - struct hlist_head list; + struct io_wq_work_node list; unsigned int nr_cached; }; |