Re: [dpdk-dev] [PATCH] vhost: fix crash on unregistering in client mode

2018-09-27 Thread Maxime Coquelin
Hi Qiang, On 09/07/2018 02:53 AM, Qiang Zhou wrote: when rte_vhost_driver_unregister delete the connection fd, the fd lock will prevent the vsocket to be freed. But when vhost_user_msg_handler return error, it will delete vsocket conn_list. And then the fd lock will become invalid. So the vsocke

[dpdk-dev] [PATCH] vhost: fix crash on unregistering in client mode

2018-09-06 Thread Qiang Zhou
when rte_vhost_driver_unregister delete the connection fd, the fd lock will prevent the vsocket to be freed. But when vhost_user_msg_handler return error, it will delete vsocket conn_list. And then the fd lock will become invalid. So the vsocket will be freed in rte_vhost_drivere_unregister and the

[dpdk-dev] [PATCH] vhost: fix crash on unregistering in client mode

2018-09-06 Thread Qiang Zhou
when rte_vhost_driver_unregister delete the connection fd, the fd lock will prevent the vsocket to be freed. But when vhost_user_msg_handler return error, it will delete vsocket conn_list. And then the fd lock will become invalid. So the vsocket will be freed in rte_vhost_drivere_unregister and th