Re: [RFC -v2] kfifo writer side lock-less support

From: Huang Ying
Date: Wed Aug 25 2010 - 04:40:22 EST


On Tue, 2010-08-24 at 17:04 +0800, Stefani Seibold wrote:
> > > The regular use case of a fifo is that there is one write and one
> > > reader. In this case, the current implementation of the kfifo structure
> > > is lock less.
> > >
> > > So i you need this, than it would be better to use the ring buffer.
> >
>
> But you waste a clean interface designed together with the community.
>
> > I really need multiple-writers and one reader in APEI GHES support, and
> > I need lock-less in writer side (because the buffer need to be written
> > in NMI handler). So I can not use the original kfifo implementation.
> >
>
> I believe you that you need it, but the question is: Is there more users
> who need it. And i am sure, there are no more users or very very few.
>
> So for the protocol a big NAK!

We really need the lock-less writer side support. So we try to do that
by extending kfifo. But it is clear that you don't like our design and
implementation. Can you help us to design a better protocol for it?

Thanks,
Huang Ying


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/