Re: [dpdk-dev] [PATCH v2] hash: fix lock release on add

2017-07-08 Thread Thomas Monjalon
07/07/2017 07:54, Pablo de Lara: > From: mstolarchuk > > When adding items to a hash table with multiple threads, > there is an spinlock used to prevent data corruption > (unless Transactional Memory is supported). > > If there is a failure, the spinlock should be released, > but there were case

[dpdk-dev] [PATCH v2] hash: fix lock release on add

2017-07-07 Thread Pablo de Lara
From: mstolarchuk When adding items to a hash table with multiple threads, there is an spinlock used to prevent data corruption (unless Transactional Memory is supported). If there is a failure, the spinlock should be released, but there were cases where that was not happening. Fixes: be856325c