Re: [PATCH v3 1/2] workqueue: Add missing EXPORT_SYMBOL_GPL for workqueue_set_min_active

From: Bradley Morgan

Date: Tue Aug 11 2026 - 12:06:37 EST


On 11 August 2026 16:53:37 BST, "Håkon Bugge" <haakon.bugge@xxxxxxxxxx>
wrote:
>Export workqueue_set_min_active() so that tests/loadable modules,
>e.g., test-ww_mutex can adjust workqueue concurrency levels to avoid
>deadlocks during cyclic test runs. This function is called in
>test-ww_mutex.c in order to solve a deadlock.
>
>Fixes: 8f172181f24b ("workqueue: Implement workqueue_set_min_active()")

I added my R-B on V2 iirc, it applies.


>Signed-off-by: Håkon Bugge <haakon.bugge@xxxxxxxxxx>
>
>---
>
>v2 -> v3:
> * Made commit message more explicit as to the usage of this
> export
>
>v1 -> v2:
> * Added commit message
> * Added Fixes: tag
>---
> kernel/workqueue.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/kernel/workqueue.c b/kernel/workqueue.c
>index 78068ae8f28a6..0d439df28452b 100644
>--- a/kernel/workqueue.c
>+++ b/kernel/workqueue.c
>@@ -6183,6 +6183,7 @@ void workqueue_set_min_active(struct workqueue_struct *wq, int min_active)
> wq_adjust_max_active(wq);
> mutex_unlock(&wq->mutex);
> }
>+EXPORT_SYMBOL_GPL(workqueue_set_min_active);
>
> /**
> * current_work - retrieve %current task's work struct
>

Thanks!