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 - 12:13 pm

> > > The patch adds only 1 field (unsigned int) to struct __kfifo. I think

You have no idea. As i wrote you should study the code before answering!

sizeof(struct __kfifo) is always 20 bytes on a 32 bit cpu, and
kfifo->mask +1 depends on the size of the number of fifo elements and it
is an initialization parameter. 


If you will be able to shrink the footprint of the struct __kfifo,
whithout wasting the code, you are welcome to do. 

Currently you generate only a lot of hot air. The assertion in your
"number of elements or bytes for kfifo_in etc" thread was also wrong.
You should first study code and understand it.

Until you have can prove your assertion by measurements and working
patches, please stop bothering.

- 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)