All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/2] workqueue: Add missing EXPORT_SYMBOL_GPL for workqueue_set_min_active
@ 2026-08-11 15:53 Håkon Bugge
  2026-08-11 15:53 ` [PATCH v3 2/2] test-ww_mutex: Fix deadlock in test_cycle_work Håkon Bugge
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Håkon Bugge @ 2026-08-11 15:53 UTC (permalink / raw)
  To: linux-kernel, Tejun Heo, Lai Jiangshan
  Cc: John Stultz, Bradley Morgan, Håkon Bugge

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()")
Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>

---

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
-- 
2.43.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-11 16:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-11 15:53 [PATCH v3 1/2] workqueue: Add missing EXPORT_SYMBOL_GPL for workqueue_set_min_active Håkon Bugge
2026-08-11 15:53 ` [PATCH v3 2/2] test-ww_mutex: Fix deadlock in test_cycle_work Håkon Bugge
2026-08-11 15:54 ` [PATCH v3 1/2] workqueue: Add missing EXPORT_SYMBOL_GPL for workqueue_set_min_active Bradley Morgan
2026-08-11 16:40 ` Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.