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: [email protected]
Signed-off-by: sunwenjie <[email protected]>
---
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