io_uring: unify IORING_SETUP_ATTACH_WQ for io-wq and SQPOLL
authorJens Axboe <axboe@kernel.dk>
Mon, 7 Sep 2020 16:14:34 +0000 (10:14 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Sep 2020 14:13:31 +0000 (08:13 -0600)
commit9702185561a541735610e9d54ad3fcea5a192a14
tree4d8cd01468c8753840dddc4e98e3189f739a8e58
parent76c917267129c971de29d8b9d310439184e29420
io_uring: unify IORING_SETUP_ATTACH_WQ for io-wq and SQPOLL

Use the same method for ctx lookup and attach, instead of maintaining
a global list of possible attach points. This makes it cleaner and now
has consistent behavior between the two.

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