Re: [dpdk-dev] [PATCH 19.02 v2] malloc: fix deadlock when using malloc stats

2018-12-21 Thread Thomas Monjalon
21/12/2018 13:26, Anatoly Burakov: > Currently, malloc statistics and external heap creation code > use memory hotplug lock as a way to synchronize accesses to > heaps (as in, locking the hotplug lock to prevent list of heaps > from changing under our feet). At the same time, malloc > statistics co

[dpdk-dev] [PATCH 19.02 v2] malloc: fix deadlock when using malloc stats

2018-12-21 Thread Anatoly Burakov
Currently, malloc statistics and external heap creation code use memory hotplug lock as a way to synchronize accesses to heaps (as in, locking the hotplug lock to prevent list of heaps from changing under our feet). At the same time, malloc statistics code will also lock the heap because it needs t