io_uring: allow IO worker threads to be frozen
authorJens Axboe <axboe@kernel.dk>
Sat, 13 Mar 2021 03:26:13 +0000 (20:26 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 13 Mar 2021 03:26:13 +0000 (20:26 -0700)
commit16efa4fce3b7af17bb45d635c3e89992d721e0f3
tree7611be49adeaf3d62ce9f64da952cd82367c4ada
parent15b2219facadec583c24523eed40fa45865f859f
io_uring: allow IO worker threads to be frozen

With the freezer using the proper signaling to notify us of when it's
time to freeze a thread, we can re-enable normal freezer usage for the
IO threads. Ensure that SQPOLL, io-wq, and the io-wq manager call
try_to_freeze() appropriately, and remove the default setting of
PF_NOFREEZE from create_io_thread().

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