netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] use smp_load_acquire()/smp_store_release()
@ 2014-10-29 14:49 Eric Dumazet
  2014-10-29 16:16 ` Alexander Duyck
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Dumazet @ 2014-10-29 14:49 UTC (permalink / raw)
  To: Alexander Duyck; +Cc: netdev, Stephen Ko

Hi Alexander

The memory barriers added in commit
b37c0fbe3f6dfba1f8ad2aed47fb40578a254635
("net: Add memory barriers to prevent possible race in byte queue
limits")

have heavy cost.

It seems we could use smp_load_acquire() and smp_store_release()
instead ?

I'll post a patch later today. I would be interested if someone was able
to test it, as your commit apparently was tested and known to fix a
reproducible race.

Thanks !

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

end of thread, other threads:[~2014-10-29 21:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 14:49 [RFC] use smp_load_acquire()/smp_store_release() Eric Dumazet
2014-10-29 16:16 ` Alexander Duyck
2014-10-29 19:27   ` Jeff Kirsher
2014-10-29 19:57     ` Eric Dumazet
2014-10-29 21:13       ` Alexander Duyck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).