Re: [PATCH 2/5] rust: workqueue: replace deprecated system_wq with system_{percpu,dfl}_wq

From: Gary Guo

Date: Mon Jul 27 2026 - 07:55:38 EST


On Sun Jul 26, 2026 at 11:36 PM BST, Danilo Krummrich wrote:
> system_wq is deprecated and triggers a runtime warning:
>
> [ 0.857414] workqueue: work func ...WorkItemPointerKy0_E3runB7_ enqueued on deprecated workqueue. Use system_{percpu|dfl}_wq instead.
>
> Replace system() with system_percpu() and system_dfl(), to match the
> previous behavior of the deprecated system() and convert doc examples
> and tests to system_dfl().

Hmm, it looks like
https://lore.kernel.org/rust-for-linux/20260203152818.317806-1-marco.crivellari@xxxxxxxx/
was never applied.

Best,
Gary

>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
> ---
> drivers/android/binder/process.rs | 4 ++--
> rust/kernel/sync/completion.rs | 2 +-
> rust/kernel/sync/lock/spinlock.rs | 2 +-
> rust/kernel/workqueue.rs | 40 +++++++++++++++++++------------
> 4 files changed, 29 insertions(+), 19 deletions(-)