[dpdk-stable] [PATCH 1/3] vhost: fix deadlock due to vhostuser socket and fdset
Luca Boccassi
bluca at debian.org
Mon Apr 30 15:44:43 CEST 2018
On Fri, 2018-04-27 at 07:48 -0700, xiangxia.m.yue at gmail.com wrote:
> From: Tonghao Zhang <xiangxia.m.yue at gmail.com>
>
> When qemu close the unix socket fd of the vhostuser as a
> server, and then immediately delete the vhostuser port on
> openvswitch. There will be a deadlock.
>
> A thread (fdset event thread): B thread:
> 1. fdset_event_dispatch rte_vhost_driver_unregister
> 2. set the fd busy to 1. lock vsocket->conn_mutex
> 3. vhost_user_read_cb fdset_del waits busy changed to
> 0.
> 4. vhost peer closed, remove the
> conn from vsocket->conn_list:
> lock vsocket->conn_mutex
>
> 5. set the fd busy to 0
>
> Fixes: 65388b43 ("vhost: fix fd leaks for vhost-user server mode")
> Cc: stable at dpdk.org
> Cc: Yuanhan Liu <yliu at fridaylinux.org>
> Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
Hi, has a version of this series been merged into mainline?
--
Kind regards,
Luca Boccassi
More information about the stable
mailing list