]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit146bad99a88072ce8bec746d10f657784c7c5fb5
tree7611be49adeaf3d62ce9f64da952cd82367c4ada
parentf0bb1979f670872a4d158a26adca2d8e6c9a0be3
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