Re: [PATCH v4] rust: adding UniqueRefCounted and UniqueRef types

Andreas Hindborg
2025-03-05T15:42:13Z

"Alice Ryhl" <aliceryhl@google.com> writes:

> On Wed, Mar 5, 2025 at 3:56 PM Oliver Mangold <oliver.mangold@pm.me> 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