public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Is read barrier missed in kfifo?
@ 2018-05-11  7:25 Xiao Guangrong
  2018-05-11  7:33 ` Stefani Seibold
  2018-05-11  8:32 ` Peter Zijlstra
  0 siblings, 2 replies; 6+ messages in thread
From: Xiao Guangrong @ 2018-05-11  7:25 UTC (permalink / raw)
  To: paulmck
  Cc: peterz, rostedt, Lai Jiangshan, stefani,
	linux-kernel@vger.kernel.org


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!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-05-14 13:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-11  7:25 Is read barrier missed in kfifo? Xiao Guangrong
2018-05-11  7:33 ` Stefani Seibold
2018-05-11  8:32 ` Peter Zijlstra
2018-05-11 16:20   ` Paul E. McKenney
2018-05-14  6:57     ` Peter Zijlstra
2018-05-14 13:25       ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox