numam-dpdk/lib/eal
David Marchand e7885281de ipc: stop mp control thread on cleanup
When calling rte_eal_cleanup, the mp channel cleanup routine only sets
mp_fd to -1 leaving the rte_mp_handle control thread running.
This control thread can spew warnings on reading on an invalid fd.
This is especially noticed with ASAN enabled.

To handle this situation, set mp_fd to -1 to signal the control thread
it should exit, but since this thread might be sleeping on the socket,
cancel the thread too.

Fixes: 85d6815fa6 ("eal: close multi-process socket during cleanup")
Cc: stable@dpdk.org

Reported-by: Owen Hilyard <ohilyard@iol.unh.edu>
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2021-07-08 13:05:55 +02:00
..
arm eal/arm: remove unused type 2021-07-05 09:50:51 +02:00
common ipc: stop mp control thread on cleanup 2021-07-08 13:05:55 +02:00
freebsd eal: create runtime dir even when shared data is not used 2021-07-07 15:23:09 +02:00
include devargs: add common key definition 2021-07-05 16:33:18 +02:00
linux eal: create runtime dir even when shared data is not used 2021-07-07 15:23:09 +02:00
ppc lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
unix eal: handle compressed firmware 2021-07-07 16:41:53 +02:00
windows eal/windows: add clock function 2021-07-02 19:03:03 +02:00
x86 lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map eal: handle compressed firmware 2021-07-07 16:41:53 +02:00