summaryrefslogtreecommitdiffstats
path: root/io_uring/io-wq.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-06-15 17:33:52 +0100
committerJens Axboe <axboe@kernel.dk>2022-07-24 18:39:13 -0600
commit48c13d8980840e489a537e4af4b2503eb9d8a1ec (patch)
tree0b14a735134240cbb8dcca7733dd6e19de2e156a /io_uring/io-wq.h
parentaa1e90f64ee5c82f6d3feb69b2a19370686f1f02 (diff)
downloadlinux-48c13d8980840e489a537e4af4b2503eb9d8a1ec.tar.gz
linux-48c13d8980840e489a537e4af4b2503eb9d8a1ec.tar.bz2
linux-48c13d8980840e489a537e4af4b2503eb9d8a1ec.zip
io_uring: explain io_wq_work::cancel_seq placement
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>
Diffstat (limited to 'io_uring/io-wq.h')
-rw-r--r--io_uring/io-wq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/io-wq.h b/io_uring/io-wq.h
index ba6eee76d028..3f54ee2a8eeb 100644
--- 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;
};