io-wq: allow lookup of existing io_wq with given id
authorJens Axboe <axboe@kernel.dk>
Thu, 23 Jan 2020 22:47:18 +0000 (15:47 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Jan 2020 17:06:57 +0000 (10:06 -0700)
commitdfdb613443df1f9e5d592ce339efdade31322975
treec8869686f8766c3c96c4d23a7e0eeadf62b65b11
parentc0acb3c6920b4a38daa5850f7b029f266803334c
io-wq: allow lookup of existing io_wq with given id

If the id and user/creds match, return an existing io_wq if we can safely
grab a reference to it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c
fs/io-wq.h