[dpdk-dev] [PATCH] vhost: fix race condition in fdset_add

Maxime Coquelin maxime.coquelin at redhat.com
Tue Dec 18 15:01:40 CET 2018



On 12/6/18 5:00 PM, Matthias Gatto wrote:
> fdset_add can call fdset_shrink_nolock which call fdset_move
> concurrently to poll that is call in fdset_event_dispatch.
> 
> This patch add a mutex to protect poll from been call at the same time
> fdset_add call fdset_shrink_nolock.
> 
> Signed-off-by: Matthias Gatto<matthias.gatto at outscale.com>
> ---
>   lib/librte_vhost/fd_man.c | 4 ++++
>   lib/librte_vhost/fd_man.h | 1 +
>   lib/librte_vhost/socket.c | 1 +
>   3 files changed, 6 insertions(+)


Applied to dpdk-next-virtio

Thanks,
Maxime


More information about the dev mailing list