Re: [ovs-dev] [PATCH v2] lib: use acquire-release semantics for pvector size

2020-02-27 Thread Yanqin Wei
.org > Subject: Re: [ovs-dev] [PATCH v2] lib: use acquire-release semantics for > pvector > size > > On 2/26/20 1:33 AM, Yanqin Wei wrote: > > Read/write concurrency of pvector library is implemented by a temp > > vector and RCU protection. Considering performance reas

Re: [ovs-dev] [PATCH v2] lib: use acquire-release semantics for pvector size

2020-02-26 Thread Ilya Maximets
On 2/26/20 1:33 AM, Yanqin Wei wrote: > Read/write concurrency of pvector library is implemented by a temp vector > and RCU protection. Considering performance reason, insertion does not > follow this scheme. > In insertion function, a thread fence ensures size incrementation is done > after new en

[ovs-dev] [PATCH v2] lib: use acquire-release semantics for pvector size

2020-02-25 Thread Yanqin Wei
Read/write concurrency of pvector library is implemented by a temp vector and RCU protection. Considering performance reason, insertion does not follow this scheme. In insertion function, a thread fence ensures size incrementation is done after new entry is stored. But there is no barrier in the it