Workqueue fixes for v6.6-rc3
* Remove double allocation of wq_update_pod_attrs_buf. * Fix missing allocation of pwq_release_worker when wq_cpu_intensive_thresh_us is set to a custom value. -----BEGIN PGP SIGNATURE----- iIQEABYIACwWIQTfIjM1kS57o3GsC/uxYfJx3gVYGQUCZRHSyg4cdGpAa2VybmVs Lm9yZwAKCRCxYfJx3gVYGbNYAP93prDoDUYHLha4NAXyZJ441+bBA5jnOOdRYLiw cd0yugEAgFzQQ/4Z6wKosdwiGdrSn33IAgnDCGdAXVWzbyM+wQU= =968G -----END PGP SIGNATURE----- Merge tag 'wq-for-6.6-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq Pull workqueue fixes from Tejun Heo: - Remove double allocation of wq_update_pod_attrs_buf - Fix missing allocation of pwq_release_worker when wq_cpu_intensive_thresh_us is set to a custom value * tag 'wq-for-6.6-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq: workqueue: Fix missed pwq_release_worker creation in wq_cpu_intensive_thresh_init() workqueue: Removed double allocation of wq_update_pod_attrs_buf
This commit is contained in:
commit
0e945134b6
@ -6535,9 +6535,6 @@ void __init workqueue_init_early(void)
|
||||
|
||||
BUG_ON(!zalloc_cpumask_var_node(&pt->pod_cpus[0], GFP_KERNEL, NUMA_NO_NODE));
|
||||
|
||||
wq_update_pod_attrs_buf = alloc_workqueue_attrs();
|
||||
BUG_ON(!wq_update_pod_attrs_buf);
|
||||
|
||||
pt->nr_pods = 1;
|
||||
cpumask_copy(pt->pod_cpus[0], cpu_possible_mask);
|
||||
pt->pod_node[0] = NUMA_NO_NODE;
|
||||
@ -6605,13 +6602,13 @@ static void __init wq_cpu_intensive_thresh_init(void)
|
||||
unsigned long thresh;
|
||||
unsigned long bogo;
|
||||
|
||||
pwq_release_worker = kthread_create_worker(0, "pool_workqueue_release");
|
||||
BUG_ON(IS_ERR(pwq_release_worker));
|
||||
|
||||
/* if the user set it to a specific value, keep it */
|
||||
if (wq_cpu_intensive_thresh_us != ULONG_MAX)
|
||||
return;
|
||||
|
||||
pwq_release_worker = kthread_create_worker(0, "pool_workqueue_release");
|
||||
BUG_ON(IS_ERR(pwq_release_worker));
|
||||
|
||||
/*
|
||||
* The default of 10ms is derived from the fact that most modern (as of
|
||||
* 2023) processors can do a lot in 10ms and that it's just below what
|
||||
|
Loading…
x
Reference in New Issue
Block a user