workqueue: Fix missed pwq_release_worker creation in wq_cpu_intensive_thresh_init()
authorZqiang <qiang.zhang1211@gmail.com>
Mon, 11 Sep 2023 08:27:22 +0000 (16:27 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 18 Sep 2023 18:50:31 +0000 (08:50 -1000)
commitdd64c873ed11cdae340be06dcd2364870fd3e4fc
tree7690c0a121b819bd4db48e67392531387d2e3438
parenta6828214480e2f00a8a7e64c7a55fc42b0f54e1c
workqueue: Fix missed pwq_release_worker creation in wq_cpu_intensive_thresh_init()

Currently, if the wq_cpu_intensive_thresh_us is set to specific
value, will cause the wq_cpu_intensive_thresh_init() early exit
and missed creation of pwq_release_worker. this commit therefore
create the pwq_release_worker in advance before checking the
wq_cpu_intensive_thresh_us.

Signed-off-by: Zqiang <qiang.zhang1211@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: 967b494e2fd1 ("workqueue: Use a kthread_worker to release pool_workqueues")
kernel/workqueue.c