[ovs-dev] [PATCH v2 2/5] Make ByteQ safe for simultaneous producer/consumer

Ben Pfaff blp at ovn.org
Thu Jun 4 20:47:48 UTC 2020


On Tue, Jun 02, 2020 at 08:21:49AM +0100, anton.ivanov at cambridgegreys.com wrote:
> From: Anton Ivanov <anton.ivanov at cambridgegreys.com>
> 
> A ByteQ with unlocked head and tail is unsafe for simultaneous
> consume/produce.

It isn't meant for that use, or at least it wasn't.  If you're changing
the goal then you should document the new guarantees, as do the other
OVS data structures that have thread-safety guarantees.


More information about the dev mailing list