mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
io-wq: shrink io_wq_work a bit
Currently we're using 40 bytes for the io_wq_work structure, and 16 of those is the doubly link list node. We don't need doubly linked lists, we always add to tail to keep things ordered, and any other use case is list traversal with deletion. For the deletion case, we can easily support any node deletion by keeping track of the previous entry. This shrinks io_wq_work to 32 bytes, and subsequently io_kiock from io_uring to 216 to 208 bytes. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
3fc50ab559
commit
6206f0e180
2 changed files with 67 additions and 15 deletions
36
fs/io-wq.c
36
fs/io-wq.c
46
fs/io-wq.h
46
fs/io-wq.h
Loading…
Add table
Add a link
Reference in a new issue