[dpdk-dev] [PATCH] ivshmem: fix race condition

2016-04-01 Thread Mauricio Vásquez
Hi Anatoly, On Fri, Apr 1, 2016 at 11:01 AM, Burakov, Anatoly wrote: > Hi Mauricio, > > > The memory zone could be freed just after adding it to the metadata > > file and just before marking it as not freeable. > > This patch changes the locking logic in order to prevent it. > > Just a nit: if t

[dpdk-dev] [PATCH] ivshmem: fix race condition

2016-04-01 Thread Mauricio Vasquez B
The memory zone could be freed just after adding it to the metadata file and just before marking it as not freeable. This patch changes the locking logic in order to prevent it. Fixes: cd10c42eb5bc ("mem: fix ivshmem freeing") Signed-off-by: Mauricio Vasquez B --- lib/librte_ivshmem/rte_ivshmem

[dpdk-dev] [PATCH] ivshmem: fix race condition

2016-04-01 Thread Burakov, Anatoly
Hi Mauricio, > The memory zone could be freed just after adding it to the metadata > file and just before marking it as not freeable. > This patch changes the locking logic in order to prevent it. Just a nit: if the stated purpose of the patch is to prevent the memzone free before adding it to me