io-wq: allow grabbing existing io-wq
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 28 Jan 2020 00:15:47 +0000 (03:15 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Jan 2020 00:26:21 +0000 (17:26 -0700)
commit25bd2c4cd40ab24b1b22606f4b8e064e372fc085
tree427b7e5863448e26f3279cdff26ea1a5fef755c4
parent0e6e5f6e8b2ad945d4be2053722601e6382d151d
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>
fs/io-wq.c
fs/io-wq.h