From: "Vivi, Rodrigo" <rodrigo.vivi@intel.com>
To: "marco.crivellari@suse.com" <marco.crivellari@suse.com>
Cc: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
"airlied@gmail.com" <airlied@gmail.com>,
"tj@kernel.org" <tj@kernel.org>,
"mhocko@suse.com" <mhocko@suse.com>,
"simona@ffwll.ch" <simona@ffwll.ch>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"frederic@kernel.org" <frederic@kernel.org>,
"jiangshanlai@gmail.com" <jiangshanlai@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"bigeasy@linutronix.de" <bigeasy@linutronix.de>,
"lucas.demarchi@intel.com" <lucas.demarchi@intel.com>,
"thomas.hellstrom@linux.intel.com"
<thomas.hellstrom@linux.intel.com>
Subject: Re: [PATCH v2 1/2] drm/xe: replace use of system_unbound_wq with system_dfl_wq
Date: Thu, 8 Jan 2026 14:13:49 +0000 [thread overview]
Message-ID: <d17704763f2abbb546574f2ae951e439bc7af48b.camel@intel.com> (raw)
In-Reply-To: <CAAofZF4_uV+78JWq2FLaezv4qaVK7BiyVLXmXNtaPXB_jhvDYQ@mail.gmail.com>
On Thu, 2026-01-08 at 14:45 +0100, Marco Crivellari wrote:
> On Thu, Jan 8, 2026 at 2:29 PM Rodrigo Vivi <rodrigo.vivi@intel.com>
> wrote:
> > I'm sorry for the delay here, but could you please refactor this
> > commit
> > message?
> >
> > The first part of this commit message is the true justification for
> > your
> > original work, not for this patch here.
>
> Hi Rodrigo,
>
> Sure, I already have a new version of it:
>
> ---
>
> This patch continues the effort to refactor workqueue APIs, which has
> begun
> with the changes introducing new workqueues and a new alloc_workqueue
> flag:
>
> commit 128ea9f6ccfb ("workqueue: Add system_percpu_wq and
> system_dfl_wq")
> commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag")
>
> The point of the refactoring is to eventually alter the default
> behavior of
> workqueues to become unbound by default so that their workload
> placement is
> optimized by the scheduler.
>
> Before that to happen, workqueue users must be converted to the
> better named
> new workqueues with no intended behaviour changes:
>
> system_wq -> system_percpu_wq
> system_unbound_wq -> system_dfl_wq
>
> This way the old obsolete workqueues (system_wq, system_unbound_wq)
> can be
> removed in the future.
>
>
> > Except for your last phrase, which indicates, some wish of removing
> > the unbound_wq, it doesn't state clear on why we should change the
> > unbound per the dfl (default?).
> >
> > Perhaps the authors of these cases below wanted to be unbound,
> > but choosing the default will make us to be tied to whatever
> > default might become in the future.
> >
> > Right now both unbound and dfl are identical. In the future
> > you are planning to remove the unbound, but what about the dfl?
> > Any plans or possible changes? If no change is planned to dfl,
> > why create default and simply not stay with the unbound one
> > that is much more clear on its intention?
>
> Yes, "dfl" is "default".
>
> With the new version above I think it is clear, but in short: the
> rename
> is needed as a first refactoring step; the plan is to have an unbound
> workqueue
> as default.
>
> system_unbound_wq will be removed and changed with system_dfl_wq.
> system_dfl_wq is the new unbound workqueue, it works exactly the same
> as
> system_unbound_wq.
>
> system_wq will be replaced with system_percpu_wq; same thing as
> above,
> no behavioral changes, system_percpu_wq is the new per-cpu workqueue.
>
> This is to make clear that if a per-cpu workqueue is not needed, the
> correct
> choice is system_dfl_wq.
>
> Also, during this conversion phase, I can tell many subsystems asked
> to
> change system_wq (the name of the "old" per-cpu workqueue) with
> system_dfl_wq, because they just wanted to use a system workqueue and
> thought system_wq was already the unbound one.
>
> All of this work has been discussed here:
>
> https://lore.kernel.org/all/20250221112003.1dSuoGyc@linutronix.de/
>
> I will add this Link to the above commit log. Let me know if it
> sounds good.
This is perfect, thank you!
>
> Thanks!
next prev parent reply other threads:[~2026-01-08 14:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-03 17:06 [PATCH v2 0/2] replace system_unbound_wq, add WQ_PERCPU to alloc_workqueue Marco Crivellari
2025-11-03 17:06 ` [PATCH v2 1/2] drm/xe: replace use of system_unbound_wq with system_dfl_wq Marco Crivellari
2026-01-08 13:28 ` Rodrigo Vivi
2026-01-08 13:45 ` Marco Crivellari
2026-01-08 14:13 ` Vivi, Rodrigo [this message]
2025-11-03 17:06 ` [PATCH v2 2/2] drm/xe: add WQ_PERCPU to alloc_workqueue users Marco Crivellari
2026-01-08 16:53 ` Marco Crivellari
2025-11-03 17:13 ` ✓ CI.KUnit: success for replace system_unbound_wq, add WQ_PERCPU to alloc_workqueue Patchwork
2025-11-03 18:30 ` ✓ Xe.CI.BAT: " Patchwork
2025-11-04 7:56 ` ✓ Xe.CI.Full: " Patchwork
2025-12-24 14:51 ` [PATCH v2 0/2] " 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=d17704763f2abbb546574f2ae951e439bc7af48b.camel@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=airlied@gmail.com \
--cc=bigeasy@linutronix.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=frederic@kernel.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=jiangshanlai@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lucas.demarchi@intel.com \
--cc=marco.crivellari@suse.com \
--cc=mhocko@suse.com \
--cc=simona@ffwll.ch \
--cc=thomas.hellstrom@linux.intel.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