[PATCH v3 0/3] rust: workqueue: add safe cancellation and status methods

Aakash Bollineni via B4 Relay posted 3 patches 2 months, 2 weeks ago
There is a newer version of this series
rust/helpers/workqueue.c            |  32 +++
rust/kernel/workqueue.rs            | 473 +++++++++++++++++++++++++++++++++---
samples/rust/Kconfig                |  10 +
samples/rust/Makefile               |   2 +
samples/rust/rust_workqueue_test.rs | 186 ++++++++++++++
5 files changed, 668 insertions(+), 35 deletions(-)
[PATCH v3 0/3] rust: workqueue: add safe cancellation and status methods
Posted by Aakash Bollineni via B4 Relay 2 months, 2 weeks ago
This is the third version of the patch series for modernizing the Linux
kernel Rust workqueue infrastructure.

Changes since v2:
- Fixed a critical initialization bug in the DelayedWork C-helper where
  the timer function was not correctly registered, causing KUnit crashes.
- Consolidated Arc refcount inspection into a shared `arc_count` helper
  in `rust/kernel/workqueue.rs` (gated by CONFIG_KUNIT).
- Updated internal KUnit tests and sample module to use the shared helper.
- Split the sample test's `TestItem` into `TestWorkItem` and
  `TestDelayedWorkItem` for clearer trait dispatch and safety.
- Integrated the sample stress test into the kernel build system via
  the SAMPLES_RUST Kconfig.
- Improved documentation and safety comments based on feedback from 
  Onur and Miguel Ojeda.

Aakash Bollineni (3):
  rust: helpers: add workqueue helpers
  rust: workqueue: add safe cancellation and status methods
  rust: workqueue: add KUnit and sample stress tests

Signed-off-by: Aakash Bollineni <aakash.bollineni@multicorewareinc.com>
---
Aakash Bollineni (3):
      rust: helpers: add workqueue helpers
      rust: workqueue: add safe cancellation and status methods
      rust: workqueue: add KUnit and sample stress tests

 rust/helpers/workqueue.c            |  32 +++
 rust/kernel/workqueue.rs            | 473 +++++++++++++++++++++++++++++++++---
 samples/rust/Kconfig                |  10 +
 samples/rust/Makefile               |   2 +
 samples/rust/rust_workqueue_test.rs | 186 ++++++++++++++
 5 files changed, 668 insertions(+), 35 deletions(-)
---
base-commit: bf074eb6891be799174ff42e0051492681fdc045
change-id: 20260403-workqueue-v3-final-fa406defb67c

Best regards,
-- 
Aakash Bollineni <aakash.bollineni@multicorewareinc.com>