aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-03-12 20:26:13 -0700
committerJens Axboe <axboe@kernel.dk>2021-03-12 20:26:13 -0700
commit16efa4fce3b7af17bb45d635c3e89992d721e0f3 (patch)
tree7611be49adeaf3d62ce9f64da952cd82367c4ada /kernel
parentkernel: freezer should treat PF_IO_WORKER like PF_KTHREAD for freezing (diff)
downloadlinux-dev-16efa4fce3b7af17bb45d635c3e89992d721e0f3.tar.xz
linux-dev-16efa4fce3b7af17bb45d635c3e89992d721e0f3.zip
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 72e444cd0ffe..d3171e8e88e5 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -2436,7 +2436,6 @@ struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node)
if (!IS_ERR(tsk)) {
sigfillset(&tsk->blocked);
sigdelsetmask(&tsk->blocked, sigmask(SIGKILL));
- tsk->flags |= PF_NOFREEZE;
}
return tsk;
}