mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Marco Crivellari <marco.crivellari@suse.com>
To: linux-kernel@vger.kernel.org
Cc: Tejun Heo <tj@kernel.org>, Lai Jiangshan <jiangshanlai@gmail.com>,
	Frederic Weisbecker <frederic@kernel.org>,
	Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	Marco Crivellari <marco.crivellari@suse.com>,
	Michal Hocko <mhocko@suse.com>, Breno Leitao <leitao@debian.org>
Subject: [PATCH RFC 0/2] workqueue: Make alloc_workqueue() unbound by default
Date: Thu,  9 Jul 2026 12:25:08 +0200	[thread overview]
Message-ID: <20260709102510.180513-1-marco.crivellari@suse.com> (raw)

Hi,

This is a proposed change about the defualt behavior of alloc_workqueue().
Currently we enforce the use of WQ_PERCPU or WQ_UNBOUND. The pourpose of
this change is make the default behavior unbound so that calling
alloc_workqueue() without WQ_PERCPU results in an unbound workqueue.

After this step it would be possible remove WQ_UNBOUND from every
alloc_workqueue().

I tested the code with a small crafted driver, and to me it looks good.
Do you spot something I'm missed?

Thanks!

Marco Crivellari (2):
  workqueue: Make unbound the default alloc_workqueue() behavior
  docs: workqueue: Update WQ_PERCPU documentation

 Documentation/core-api/workqueue.rst |  3 +-
 include/linux/workqueue.h            |  8 ++--
 kernel/workqueue.c                   | 68 ++++++++++------------------
 3 files changed, 30 insertions(+), 49 deletions(-)

-- 
2.54.0


             reply	other threads:[~2026-07-09 10:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-09 10:25 Marco Crivellari [this message]
2026-07-09 10:25 ` [PATCH RFC 1/2] workqueue: Make unbound the default alloc_workqueue() behavior Marco Crivellari
2026-07-09 10:25 ` [PATCH RFC 2/2] docs: workqueue: Update WQ_PERCPU documentation Marco Crivellari
2026-07-09 22:19 ` [PATCH RFC 0/2] workqueue: Make alloc_workqueue() unbound by default Tejun Heo
2026-07-10  7:16   ` Marco Crivellari

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=20260709102510.180513-1-marco.crivellari@suse.com \
    --to=marco.crivellari@suse.com \
    --cc=bigeasy@linutronix.de \
    --cc=frederic@kernel.org \
    --cc=jiangshanlai@gmail.com \
    --cc=leitao@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhocko@suse.com \
    --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

all inboxes | Powered by JetHome®