Re: [RFC][PATCH v2 08/10] smp,irq_work: Use the new irq_work API

From: Christoph Hellwig
Date: Thu Aug 20 2020 - 02:20:34 EST


On Wed, Aug 19, 2020 at 11:50:55AM -0700, Linus Torvalds wrote:
> On Wed, Aug 19, 2020 at 12:22 AM <peterz@xxxxxxxxxxxxx> wrote:
> >
> > That is, the external serialization comes from the non-atomic
> > test-and-set they both have. This works nicely when there is external
> > state that already serializes things, but totally comes apart (and
> > causes trivial list corruption) when you get it wrong.
>
> Quite often, there just isn't any *need* for serialization, because
> there is only ever one op active.

Yes, that's pretty much the block use case. The request gets completed
once, and and the IPI is used to bounce it back to the issuing cpu.