diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-11-25 16:49:20 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-26 03:56:11 +0100 |
commit | 576a347b7af8abfbddc80783fb6629c2894d036e (patch) | |
tree | b0e84672c7a4fed95d8a00749b25a649fed82548 /fs/io-wq.h | |
parent | io_uring: fix dead-hung for non-iter fixed rw (diff) | |
download | linux-576a347b7af8abfbddc80783fb6629c2894d036e.tar.xz linux-576a347b7af8abfbddc80783fb6629c2894d036e.zip |
io-wq: have io_wq_create() take a 'data' argument
We currently pass in 4 arguments outside of the bounded size. In
preparation for adding one more argument, let's bundle them up in
a struct to make it more readable.
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.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h index b68b11bf3633..bb8f1c8f8e24 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -42,9 +42,15 @@ struct io_wq_work { typedef void (get_work_fn)(struct io_wq_work *); typedef void (put_work_fn)(struct io_wq_work *); -struct io_wq *io_wq_create(unsigned bounded, struct mm_struct *mm, - struct user_struct *user, - get_work_fn *get_work, put_work_fn *put_work); +struct io_wq_data { + struct mm_struct *mm; + struct user_struct *user; + + get_work_fn *get_work; + put_work_fn *put_work; +}; + +struct io_wq *io_wq_create(unsigned bounded, struct io_wq_data *data); void io_wq_destroy(struct io_wq *wq); void io_wq_enqueue(struct io_wq *wq, struct io_wq_work *work); |