projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa1e90f
)
io_uring: explain io_wq_work::cancel_seq placement
author
Pavel Begunkov
<asml.silence@gmail.com>
Wed, 15 Jun 2022 16:33:52 +0000
(17:33 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:13 +0000
(18:39 -0600)
Add a comment on why we keep ->cancel_seq in struct io_wq_work instead
of struct io_kiocb despite it needed only by io_uring but not io-wq.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/988e87eec9dc700b5dae933df3aefef303502f6c.1655310733.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io-wq.h
patch
|
blob
|
history
diff --git
a/io_uring/io-wq.h
b/io_uring/io-wq.h
index
ba6eee7
..
3f54ee2
100644
(file)
--- a/
io_uring/io-wq.h
+++ b/
io_uring/io-wq.h
@@
-155,6
+155,7
@@
struct io_wq_work_node *wq_stack_extract(struct io_wq_work_node *stack)
struct io_wq_work {
struct io_wq_work_node list;
unsigned flags;
+ /* place it here instead of io_kiocb as it fills padding and saves 4B */
int cancel_seq;
};