]> 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)
commitce3850e6c2348b61e4aa44c16b9099163c449f1a
tree189f9106aac0c28192b82e04062246507dac164f
parent8a9e764a8148f595bb0a1fc5deedd8a2da39661e
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