diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2020-01-28 01:15:47 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-29 01:44:40 +0100 |
commit | eba6f5a330cf042bb0001f0b5e8cbf21be1b25d6 (patch) | |
tree | 08c2440a6666fc85c612855b9a21c3614a57dd20 /fs/io-wq.h | |
parent | io_uring/io-wq: don't use static creds/mm assignments (diff) | |
download | linux-eba6f5a330cf042bb0001f0b5e8cbf21be1b25d6.tar.xz linux-eba6f5a330cf042bb0001f0b5e8cbf21be1b25d6.zip |
io-wq: allow grabbing existing io-wq
Export a helper to attach to an existing io-wq, rather than setting up
a new one. This is doable now that we have reference counted io_wq's.
Reported-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.h')
-rw-r--r-- | fs/io-wq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/io-wq.h b/fs/io-wq.h index 167316ad447e..c42602c58c56 100644 --- a/fs/io-wq.h +++ b/fs/io-wq.h @@ -99,6 +99,7 @@ struct io_wq_data { }; struct io_wq *io_wq_create(unsigned bounded, struct io_wq_data *data); +bool io_wq_get(struct io_wq *wq, 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); |