Re: [PATCH v4 4/5] rust: workqueue: add creation of workqueues

From: Gary Guo

Date: Wed Nov 25 2026 - 11:57:39 EST


On Thu Nov 19, 2026 at 2:12 PM GMT, Alice Ryhl wrote:
> Creating workqueues is needed by various GPU drivers. Not only does it
> give you better control over execution, it also allows devices to ensure
> that all tasks have exited before the device is unbound (or similar) by
> running the workqueue destructor.
>
> Reviewed-by: Andreas Hindborg <a.hindborg@xxxxxxxxxx>
> Reviewed-by: Daniel Almeida <daniel.almeida@xxxxxxxxxxxxx>
> Co-developed-by: Danilo Krummrich <dakr@xxxxxxxxxx>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
> Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>

Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>

> ---
> rust/helpers/workqueue.c | 7 +
> rust/kernel/workqueue/builder.rs | 370 +++++++++++++++++++++++++++++++++++++++
> rust/kernel/workqueue/mod.rs | 51 +++++-
> 3 files changed, 425 insertions(+), 3 deletions(-)