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

"Gary Guo" <[email protected]> Mon, 27 Jul 2026 12:53:44 +0100
Newsgroups org.kernel.vger.rust-for-linux,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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/[email protected]/
was never applied.

Best,
Gary

>
> Signed-off-by: Danilo Krummrich <[email protected]>
> ---
>  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(-)