[dpdk-dev] [PATCH] vhost: fix deadlock when vhost unregister
Maxime Coquelin
maxime.coquelin at redhat.com
Thu Feb 21 18:46:55 CET 2019
On 1/28/19 7:55 AM, sunwenjie wrote:
> When rte_vhost_driver_unregister delete the connection fd,
> fdset_try_del will always try and donot release the
> vhostuser.mutex if the fd is busy, but the fdset_event_dispatch
> will set the fd to busy and call vhost_user_msg_handler to get
> vhostuser.mutex, which will cause deadlock. Unlock the
> vhost_user.mutexif fdset_try_del fail and relock it when retry.
>
> Fixes: 8b4b949144b8 ("vhost: fix dead lock on closing in server mode")
> Cc: stable at dpdk.org
>
> Signed-off-by: sunwenjie <findtheonlyway at gmail.com>
> ---
> lib/librte_vhost/socket.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
Applied to dpdk-next-virtio/master with suggested commit message
rewording, and fixed Signed-off-by name.
Thanks,
Maxime
More information about the dev
mailing list