[dpdk-dev] [dpdk-stable] [PATCH] ipc: stop mp control thread on cleanup

David Marchand david.marchand at redhat.com
Wed Jun 16 10:34:45 CEST 2021


On Mon, Jun 14, 2021 at 11:13 AM David Marchand
<david.marchand at redhat.com> wrote:
>
> 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.
>
> To handle this situation, sets 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: 85d6815fa6d0 ("eal: close multi-process socket during cleanup")
> Cc: stable at dpdk.org
>

Reported-by: Owen Hilyard <ohilyard at iol.unh.edu>

> Signed-off-by: David Marchand <david.marchand at redhat.com>

Anatoly, review please.


-- 
David Marchand



More information about the dev mailing list