Re: [PATCH] rust: workqueue: fix SAFETY comment Arc refs in Pin<KBox<T>>
From: Alice Ryhl
Date: Mon Apr 27 2026 - 11:01:17 EST
On Sat, Apr 25, 2026 at 07:27:01PM +0530, Sagar Taunk wrote:
> The `WorkItemPointer` implementation for `Pin<KBox<T>>` contained SAFETY
> comments that incorrectly referenced `Arc::into_raw` instead of
> `KBox::into_raw`. This implementation uses `KBox`, not `Arc`, so update
> the comments to accurately reflect the actual ownership transfer.
>
> Suggested-by: Onur Özkan <contact@xxxxxxxxxxxxx>
> Link: https://github.com/Rust-for-Linux/linux/issues/1233
> Signed-off-by: Sagar Taunk <sagartaunk2@xxxxxxxxx>
Thanks!
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>