Re: [PATCH v4] rust: adding UniqueRefCounted and UniqueRef types
From: Andreas Hindborg
Date: Wed Mar 05 2025 - 10:42:25 EST
"Alice Ryhl" <aliceryhl@xxxxxxxxxx> writes:
> On Wed, Mar 5, 2025 at 3:56 PM Oliver Mangold <oliver.mangold@xxxxx> wrote:
>>
[...]
>
> What is the use-case for these abstractions?
Missed this Q. It is for asserting uniqueness of a reference to a block
layer request [1].
Best regards,
Andreas Hindborg
[1] https://github.com/metaspace/linux/blob/44dd1c6eff584475f13e2a73eb4ad25df17d0d55/rust/kernel/block/mq/request.rs#L406