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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stefani Seibold
Date: Tuesday, August 24, 2010 - 2:04 am

Am Dienstag, den 24.08.2010, 16:43 +0800 schrieb Huang Ying:

Again: Fix this.


I don't know what you mean with "because sizeof(struct __kfifo) should
be much smaller that __kfifo->mask + 1 in most cases". I am convinced
that you did not really understand the kfifo code. sizeof(struct
__kfifo) is constant and __kfifo->mask + 1 is the fifo size in elements,
which is not constant. Before you answering study the code first!

And is not acceptable to bload the struct __kfifo, because it will never
need by the most users.


No, you add also code to kfifo_avail, so you enlarge two of the most
used macros. And again:

Rule number one - do not increase the code size if the functionality is
not needed and used!


No, first fix your bugs...


But you waste a clean interface designed together with the community.


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!

- Stefani


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC -v2] kfifo writer side lock-less support, Huang Ying, (Mon Aug 23, 6:42 pm)
Re: [RFC -v2] kfifo writer side lock-less support, Stefani Seibold, (Tue Aug 24, 12:55 am)
Re: [RFC -v2] kfifo writer side lock-less support, Huang Ying, (Tue Aug 24, 1:43 am)
Re: [RFC -v2] kfifo writer side lock-less support, Stefani Seibold, (Tue Aug 24, 2:04 am)
Re: [RFC -v2] kfifo writer side lock-less support, Huang Ying, (Tue Aug 24, 5:50 am)
Re: [RFC -v2] kfifo writer side lock-less support, Stefani Seibold, (Tue Aug 24, 12:13 pm)
Re: [RFC -v2] kfifo writer side lock-less support, Huang Ying, (Tue Aug 24, 5:38 pm)
Re: [RFC -v2] kfifo writer side lock-less support, Huang Ying, (Wed Aug 25, 1:40 am)