OSDN Git Service

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>
Wed, 29 Jan 2020 00:44:40 +0000 (17:44 -0700)
commiteba6f5a330cf042bb0001f0b5e8cbf21be1b25d6
tree08c2440a6666fc85c612855b9a21c3614a57dd20
parentcccf0ee834559ae0b327b40290e14f6a2a017177
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