Re: [PATCH 0/2] rust: dma_buf: add dma-fence signalling sections
From: Danilo Krummrich
Date: Fri Nov 27 2026 - 15:27:06 EST
On Fri Nov 27, 2026 at 9:11 PM CET, Danilo Krummrich wrote:
> On Fri Nov 27, 2026 at 7:59 PM CET, Gary Guo wrote:
>> Do you need it being a guard? You can do things like
>>
>> let a = SignallingSection::begin();
>> let b = SignallingSection::begin();
>> drop(a);
>> drop(b);
>>
>> to break nesting. A closure-based approach wouldn't have this issue.
>
> I also think that a closure-based design would be better.
>
> Another nit, "signaling" is much more common in the kernel than "signalling".
Well, while this is true, the API already inconsistent about this in exactly the
functions you are abstracting here, so nevermind. :)