numam-dpdk/lib/telemetry
Ciara Power 048960272e telemetry: fix race on callbacks list
The list_commands() function accessed the callbacks list,
but did not take the lock. This may have caused inconsistencies if
callbacks were being registered at the same time.
This is now fixed to lock before iterating the list,
and unlock afterwards.

Fixes: f38748736e ("telemetry: add default callback commands")
Cc: stable@dpdk.org

Reported-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2021-05-05 18:21:26 +02:00
..
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_telemetry.h telemetry: hide internal define 2021-05-05 18:21:26 +02:00
telemetry_data.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
telemetry_data.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
telemetry_internal.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
telemetry_json.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
telemetry_legacy.c telemetry: check thread creations 2021-04-21 16:23:50 +02:00
telemetry.c telemetry: fix race on callbacks list 2021-05-05 18:21:26 +02:00
version.map lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00