malloc: fix race condition on numa_socket field
authorDavid Marchand <david.marchand@6wind.com>
Fri, 18 Apr 2014 12:56:17 +0000 (14:56 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 30 Apr 2014 09:29:00 +0000 (11:29 +0200)
commiteeeebe4cd99469dffd99f802afa7022440d34592
tree66d635943716890d31a5935573f867719fe73087
parent8c910d01aedf435128287dc8c556e48c1a8660e7
malloc: fix race condition on numa_socket field

We don't really need this field as it is only used when creating the memzone
object associated to this heap.
Removing numa_socket field makes things simpler and remove race condition.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_eal/common/include/rte_malloc_heap.h
lib/librte_malloc/malloc_heap.c