Re: [dpdk-dev] [PATCH] vhost: fix deadlock when vhost unregister

2019-02-21 Thread Maxime Coquelin
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,

Re: [dpdk-dev] [PATCH] vhost: fix deadlock when vhost unregister

2019-02-13 Thread 孙文杰
Thanks, Maxime. Your description is better, My real name is Wenjie Sun. Signed-off-by: Wenjie Sun Maxime Coquelin 于2019年2月8日周五 下午10:12写道: > > > 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 rele

Re: [dpdk-dev] [PATCH] vhost: fix deadlock when vhost unregister

2019-02-08 Thread Maxime Coquelin
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,

[dpdk-dev] [PATCH] vhost: fix deadlock when vhost unregister

2019-01-27 Thread sunwenjie
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 vho

Re: [dpdk-dev] [PATCH] vhost: fix deadlock when vhost unregister.

2019-01-14 Thread Ye Xiaolong
Hi, On 01/11, 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 >vh

[dpdk-dev] [PATCH] vhost: fix deadlock when vhost unregister.

2019-01-12 Thread sunwenjie
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 dead