]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41a5485f5d6aa83f280729b9a56583443d68faab
tree189f9106aac0c28192b82e04062246507dac164f
parent55def3251fa223de613bd8dec565ace93fd037be
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