Re: [PATCH v4 2/2] rust: add system_percpu() and per-cpu enqueue functions

From: Alice Ryhl

Date: Tue Feb 03 2026 - 10:41:56 EST


On Tue, Feb 03, 2026 at 04:28:17PM +0100, Marco Crivellari wrote:
> The C code defines 2 new workqueues: system_percpu_wq and system_dfl_wq,
> respectively the futures replacement for system_wq and system_unbound_wq.
>
> This change introduce system_percpu(), that use the new system_percpu_wq.
>
> In order to enqueue on a specific CPU, two new functions have been added
> to the Queue implementation:
>
> enqueue_cpu() - that receive a u32 CPU id as 2nd argument
> enqueue_delayed_cpu() - that receive a u32 CPU id as 3rd argument
>
> system_wq (and so workqueue::system()) will be removed in a future
> release cycle and should not be used.
>
> Suggested-by: Tejun Heo <tj@xxxxxxxxxx>
> Signed-off-by: Marco Crivellari <marco.crivellari@xxxxxxxx>

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>