summaryrefslogtreecommitdiff
path: root/io_uring/io-wq.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-06-16 15:57:19 +0300
committerJens Axboe <axboe@kernel.dk>2022-07-25 03:39:14 +0300
commitab1c84d855cf2c284fa0f4b17fc04063659c54a1 (patch)
treefcd37ba6aab3db4115bfa49421662e91854823e2 /io_uring/io-wq.h
parent27a9d66fec77cff0e32d2ecd5d0ac7ef878a7bb0 (diff)
downloadlinux-ab1c84d855cf2c284fa0f4b17fc04063659c54a1.tar.xz
io_uring: make io_uring_types.h public
Move io_uring types to linux/include, need them public so tracing can see the definitions and we can clean trace/events/io_uring.h Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/a15f12e8cb7289b2de0deaddcc7518d98a132d17.1655384063.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.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/io_uring/io-wq.h b/io_uring/io-wq.h
index 3f54ee2a8eeb..10b80ef78bb8 100644
--- a/io_uring/io-wq.h
+++ b/io_uring/io-wq.h
@@ -2,6 +2,7 @@
#define INTERNAL_IO_WQ_H
#include <linux/refcount.h>
+#include <linux/io_uring_types.h>
struct io_wq;
@@ -20,15 +21,6 @@ enum io_wq_cancel {
IO_WQ_CANCEL_NOTFOUND, /* work not found */
};
-struct io_wq_work_node {
- struct io_wq_work_node *next;
-};
-
-struct io_wq_work_list {
- struct io_wq_work_node *first;
- struct io_wq_work_node *last;
-};
-
#define wq_list_for_each(pos, prv, head) \
for (pos = (head)->first, prv = NULL; pos; prv = pos, pos = (pos)->next)
@@ -152,13 +144,6 @@ struct io_wq_work_node *wq_stack_extract(struct io_wq_work_node *stack)
return node;
}
-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;
-};
-
static inline struct io_wq_work *wq_next_work(struct io_wq_work *work)
{
if (!work->list.next)