summaryrefslogtreecommitdiff
path: root/fs/io-wq.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-10-14 10:48:51 -0600
committerJens Axboe <axboe@kernel.dk>2020-10-17 09:25:45 -0600
commit98447d65b4a7a59f8ea37dc6e5d743247d9a7b01 (patch)
treec0064a41d21000fd3c48b8ebe3ea1c54c9dae69c /fs/io-wq.h
parentdfead8a8e2c494b947480bac90a6f9792f08bc12 (diff)
downloadlwn-98447d65b4a7a59f8ea37dc6e5d743247d9a7b01.tar.gz
lwn-98447d65b4a7a59f8ea37dc6e5d743247d9a7b01.zip
io_uring: move io identity items into separate struct
io-wq contains a pointer to the identity, which we just hold in io_kiocb for now. This is in preparation for putting this outside io_kiocb. The only exception is struct files_struct, which we'll need different rules for to avoid a circular dependency. No functional changes in this patch. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.h')
-rw-r--r--fs/io-wq.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h
index 31a29023605a..be21c500c925 100644
--- a/fs/io-wq.h
+++ b/fs/io-wq.h
@@ -1,6 +1,8 @@
#ifndef INTERNAL_IO_WQ_H
#define INTERNAL_IO_WQ_H
+#include <linux/io_uring.h>
+
struct io_wq;
enum {
@@ -91,15 +93,7 @@ static inline void wq_list_del(struct io_wq_work_list *list,
struct io_wq_work {
struct io_wq_work_node list;
- struct files_struct *files;
- struct mm_struct *mm;
-#ifdef CONFIG_BLK_CGROUP
- struct cgroup_subsys_state *blkcg_css;
-#endif
- const struct cred *creds;
- struct nsproxy *nsproxy;
- struct fs_struct *fs;
- unsigned long fsize;
+ struct io_identity *identity;
unsigned flags;
};