[PATCH v2 0/2] Creation of workqueues in Rust

From: Alice Ryhl

Date: Thu Nov 13 2025 - 05:01:16 EST


GPU drivers often need to create their own workqueues for various
reasons. Add the ability to do so.

Signed-off-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
---
Changes in v2:
- Redo how flagging works.
- Restrict delayed work to not be usable on custom workqueues.
- Link to v1: https://lore.kernel.org/r/20250411-create-workqueue-v1-1-f7dbe7f1e05f@xxxxxxxxxx

---
Alice Ryhl (2):
rust: workqueue: restrict delayed work to global wqs
rust: workqueue: add creation of workqueues

rust/helpers/workqueue.c | 6 ++
rust/kernel/workqueue.rs | 187 ++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 189 insertions(+), 4 deletions(-)
---
base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada
change-id: 20250411-create-workqueue-d053158c7a4b

Best regards,
--
Alice Ryhl <aliceryhl@xxxxxxxxxx>