mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Marco Crivellari <marco.crivellari@suse.com>
Cc: linux-kernel@vger.kernel.org,
	Lai Jiangshan <jiangshanlai@gmail.com>,
	Frederic Weisbecker <frederic@kernel.org>,
	Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	Michal Hocko <mhocko@suse.com>, Breno Leitao <leitao@debian.org>
Subject: Re: [PATCH v4 0/2] workqueue: Make WQ_UNBOUND the default behavior
Date: Fri, 16 Oct 2026 08:03:19 -1000	[thread overview]
Message-ID: <2da5c0871093ae68069e60889a0481ca@kernel.org> (raw)
In-Reply-To: <20261015140148.231126-1-marco.crivellari@suse.com>

Hello, Marco.

The following is a Claude-generated review.

On Thu, Oct 15, 2026 at 04:01:46PM +0200, Marco Crivellari wrote:
> Currently alloc_workqueue() make sure one among WQ_UNBOUND or WQ_PERCPU is
> present. This is enforced warning and setting WQ_PERCPU as default when
> alloc_workqueue() without WQ_PERCPU or WQ_UNBOUND.

- 1/2: The description gives the future removal of WQ_UNBOUND as the only
  reason. Can it lead with why unbound should be the default, as
  dadb3ebcf395 ("workqueue: WQ_PERCPU added to alloc_workqueue users")
  does?

  Moving the defaulting above the wq_size computation is the one subtle
  point. Maybe add a sentence on it to the description?

  The new comment says WQ_UNBOUND is final at that point, but the
  WQ_POWER_EFFICIENT block right below can still set it. The first two
  paragraphs restate the if/else. Maybe trim it to the ordering
  constraint against wq_size?

  unlikely() on the neither-flag branch now marks the path that's meant
  to become the default. Maybe drop it?

  The WQ_POWER_EFFICIENT comment in include/linux/workqueue.h says such
  workqueues are per-cpu by default. With this patch, one without
  WQ_PERCPU is unbound regardless of workqueue.power_efficient. All
  in-tree users pass WQ_PERCPU, so only the text needs updating.

  Typos: "achive", "alloc_users()" (alloc_workqueue() users), "ensure" ->
  "ensures", "neither flags are" -> "neither flag is".

- 2/2: The description says WQ_PERCPU is set for WQ_BH "regardless of
  what the caller passes", but WQ_BH | WQ_UNBOUND is rejected by the
  __WQ_BH_ALLOWS check.

  "the only permitted flags" dropped "additional", but WQ_BH itself is
  in __WQ_BH_ALLOWS too. Also, "workqueueus" typo.

  The new WQ_UNBOUND sentence sits after the "useful for the following
  cases" bullets and reads as one more case. Maybe move it to the top of
  the entry? Also, "Workqueue without" -> "Workqueues without".

  The Guidelines section still says "using a bound wq is usually
  beneficial", which now contradicts the default. Can that be updated
  too?

  Nit: doc patches in this tree usually use the "workqueue: doc:" prefix.

Thanks.

-- 
tejun

      parent reply	other threads:[~2026-10-16 18:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-15 14:01 Marco Crivellari
2026-10-15 14:01 ` [PATCH v4 1/2] workqueue: Make alloc_workqueue() unbound by default Marco Crivellari
2026-10-16 11:45   ` Breno Leitao
2026-10-16 12:57     ` Marco Crivellari
2026-10-16 15:53   ` Breno Leitao
2026-10-16 16:18     ` Marco Crivellari
2026-10-16 16:19       ` Marco Crivellari
2026-10-15 14:01 ` [PATCH v4 2/2] doc: Update WQ_UNBOUND and WQ_BH documentation Marco Crivellari
2026-10-16 15:16   ` Breno Leitao
2026-10-16 18:03 ` Tejun Heo [this message]

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