We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1df12b + 6434455 commit b73f049Copy full SHA for b73f049
1 file changed
kernel/workqueue.c
@@ -4600,6 +4600,12 @@ static int alloc_and_link_pwqs(struct workqueue_struct *wq)
4600
}
4601
cpus_read_unlock();
4602
4603
+ /* for unbound pwq, flush the pwq_release_worker ensures that the
4604
+ * pwq_release_workfn() completes before calling kfree(wq).
4605
+ */
4606
+ if (ret)
4607
+ kthread_flush_worker(pwq_release_worker);
4608
+
4609
return ret;
4610
4611
enomem:
0 commit comments