Re: [PATCH] workqueue: Update schedule_work() documentation to reflect per-CPU nature
From: Tejun Heo
Date: Thu Feb 26 2026 - 13:48:54 EST
On Thu, Feb 26, 2026 at 04:17:00PM +0530, Mallesh Koujalagi wrote:
> The function documentation for schedule_work(), schedule_delayed_work(),
> and schedule_delayed_work_on() still described them as using "global" or
> "kernel-global" workqueues, which is misleading after commit a2be943b46b4
> ("workqueue: replace use of system_wq with system_percpu_wq").
>
> These functions now use system_percpu_wq, which is a per-CPU workqueue
> where work items are executed on the CPU where they were queued. Update
> the documentation to accurately reflect this CPU affinity behavior.
Note that system_wq has always been a percpu workqueue. We've been just
renaming things. Nothing wrong with updating documentation but the commit
message is misleading.
Thanks.
--
tejun