Re: Is read barrier missed in kfifo?

From: Stefani Seibold
Date: Fri May 11 2018 - 04:07:21 EST


My guts thinks you are right. Feel free to send a patch...

Am Freitag, den 11.05.2018, 15:25 +0800 schrieb Xiao Guangrong:
> Hi,
>
> Currently, there is no read barrier between reading the index
> (kfifo.in) and fetching the real data from the fifo.
>
> I am afraid that will cause the vfifo is observed as not empty
> however the data is not actually ready for read. Right?
>
> Thanks!