Re: [PATCH 0/2] rust: dma_buf: add dma-fence signalling sections
From: Philipp Stanner
Date: Mon Nov 30 2026 - 11:11:40 EST
On Fri, 2026-11-27 at 21:26 +0100, Danilo Krummrich wrote:
> 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. :)
I try to go for signaling with one l in all code that I write. Maybe we
can agree on that style.