Files
linux-stable-mirror/include/linux
Marco Crivellari 930c2ea566 workqueue: Add new WQ_PERCPU flag
Currently if a user enqueue a work item using schedule_delayed_work() the
used wq is "system_wq" (per-cpu wq) while queue_delayed_work() use
WORK_CPU_UNBOUND (used when a cpu is not specified). The same applies to
schedule_work() that is using system_wq and queue_work(), that makes use
again of WORK_CPU_UNBOUND.
This lack of consistentcy cannot be addressed without refactoring the API.

This patch adds a new WQ_PERCPU flag to explicitly request the use of
the per-CPU behavior. Both flags coexist for one release cycle to allow
callers to transition their calls.

Once migration is complete, WQ_UNBOUND can be removed and unbound will
become the implicit default.

tj: Merged doc patch.

Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Marco Crivellari <marco.crivellari@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2025-06-17 08:52:09 -10:00
..
2025-04-03 21:35:32 +02:00
2025-03-21 09:46:08 +01:00
2025-03-21 20:57:55 -03:00
2025-04-02 07:06:59 -06:00
2025-03-20 17:33:31 -04:00
2025-03-17 22:06:41 -07:00
2025-05-25 15:43:36 -07:00
2025-03-22 15:36:49 +02:00
2025-04-15 11:32:34 +02:00
2025-03-17 13:54:50 +00:00
2025-03-27 13:14:46 -05:00
2025-03-16 17:40:22 -07:00
2025-03-17 11:52:25 +01:00
2025-05-15 04:49:15 +03:00
2025-03-20 08:00:50 -07:00
2025-03-25 09:15:07 -07:00
2025-04-18 10:05:49 -04:00
2025-06-17 08:52:09 -10:00
2025-03-13 13:25:58 -07:00
2025-03-13 13:25:58 -07:00
2025-03-13 13:25:58 -07:00