RE: [PATCH] vhost: fix crash on vhost-user client port deletion

2023-05-11 Thread Xia, Chenbo
Hi Tianyuan, > -Original Message- > From: suntianyuan > Sent: Tuesday, March 21, 2023 2:24 PM > To: maxime.coque...@redhat.com; Xia, Chenbo > Cc: dev@dpdk.org; suntianyuan > Subject: [PATCH] vhost: fix crash on vhost-user client port deletion > > The rte_vhost

[PATCH] vhost: fix crash on vhost-user client port deletion

2023-03-20 Thread suntianyuan
The rte_vhost_driver_unregister() and vhost_user_read_cb() can be called at the same time by 2 threads. reconn may be added back to reconn_list by vhost_user_read_cb() after rte_vhost_driver_unregister() removed from reconn_list. Then rte_vhost_driver_unregister free vsocket, cause vhost_user_clien