Re: [dpdk-dev] [PATCH v5 4/5] hash: add lock-free read-write concurrency

2018-10-23 Thread Bruce Richardson
On Mon, Oct 22, 2018 at 11:22:03PM -0500, Honnappa Nagarahalli wrote: > Add lock-free read-write concurrency. This is achieved by the > following changes. > > 1) Add memory ordering to avoid race conditions. The only race > condition that can occur is - using the key store element > before the ke

[dpdk-dev] [PATCH v5 4/5] hash: add lock-free read-write concurrency

2018-10-22 Thread Honnappa Nagarahalli
Add lock-free read-write concurrency. This is achieved by the following changes. 1) Add memory ordering to avoid race conditions. The only race condition that can occur is - using the key store element before the key write is completed. Hence, while inserting the element the release memory order