The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Håkon Bugge" <haakon.bugge@oracle.com>
To: linux-kernel@vger.kernel.org, Tejun Heo <tj@kernel.org>,
	Lai Jiangshan <jiangshanlai@gmail.com>
Cc: "John Stultz" <jstultz@google.com>,
	"Bradley Morgan" <include@grrlz.net>,
	"Håkon Bugge" <haakon.bugge@oracle.com>
Subject: [PATCH v4 1/2] workqueue: Add missing EXPORT_SYMBOL_GPL for workqueue_set_min_active
Date: Mon, 17 Aug 2026 10:42:15 +0200	[thread overview]
Message-ID: <20260817084218.318326-1-haakon.bugge@oracle.com> (raw)

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>
Reviewed-by: Bradley Morgan <include@grrlz.net>
Acked-by: Tejun Heo <tj@kernel.org>

---

v3 -> v4:
      * Added Bradley's r-b
      * Added Tejun's a-b
      * Rebased on v7.2

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


             reply	other threads:[~2026-08-17  8:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-17  8:42 Håkon Bugge [this message]
2026-08-17  8:42 ` [PATCH v4 2/2] test-ww_mutex: Fix deadlock in test_cycle_work Håkon Bugge
2026-08-17 14:12 ` [PATCH v4 1/2] workqueue: Add missing EXPORT_SYMBOL_GPL for workqueue_set_min_active Bradley Morgan
2026-08-17 17:22 ` Tejun Heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260817084218.318326-1-haakon.bugge@oracle.com \
    --to=haakon.bugge@oracle.com \
    --cc=include@grrlz.net \
    --cc=jiangshanlai@gmail.com \
    --cc=jstultz@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox