io_uring: use system_unbound_wq for ring exit work
authorJens Axboe <axboe@kernel.dk>
Wed, 19 Aug 2020 17:10:51 +0000 (11:10 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Aug 2020 17:10:51 +0000 (11:10 -0600)
commitfc666777da9da387354b1a142a6ffc5d43bc4f7e
tree189f9106aac0c28192b82e04062246507dac164f
parent8452fd0ce657a4313dfa784f11320971b67727fd
io_uring: use system_unbound_wq for ring exit work

We currently use system_wq, which is unbounded in terms of number of
workers. This means that if we're exiting tons of rings at the same
time, then we'll briefly spawn tons of event kworkers just for a very
short blocking time as the rings exit.

Use system_unbound_wq instead, which has a sane cap on the concurrency
level.

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