io-wq: make the io_wq ref counted
authorJens Axboe <axboe@kernel.dk>
Thu, 23 Jan 2020 22:33:32 +0000 (15:33 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Jan 2020 22:58:42 +0000 (15:58 -0700)
commit848f7e1887c46f21679c2c12b9e8022f17750721
treecb797018e76a576c1def3298deb5ae23092582f9
parent9466f43741bc08edd7b1bee642dd6f5561091634
io-wq: make the io_wq ref counted

In preparation for sharing an io-wq across different users, add a
reference count that manages destruction of it.

Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c