Spdk/lib/vhost
Changpeng Liu 63dab84449 lib/vhost: fix race condition when destroying a device
`rte_vhost_driver_unregister` API for removing socket is not
asynchronous, it may call SPDK ops for adding a new connection
or removing a connection, so we can't hold the user device lock
when calling this function, and reject to add a new connection
while calling `rte_vhost_driver_unregister`.

Fix issue #2748.

Change-Id: I5594224f26374b2336d64175ecd5e5ec3d545a58
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15483
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2023-01-06 16:14:35 +00:00
..
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00
rte_vhost_user.c lib/vhost: fix race condition when destroying a device 2023-01-06 16:14:35 +00:00
spdk_vhost.map event/vhost: separate vhost subsystem to scsi and blk 2022-05-20 09:20:07 +00:00
vhost_blk.c lib/vhost: use user_dev's lock to protect vhost sessions 2023-01-06 16:14:35 +00:00
vhost_internal.h lib/vhost: use user_dev's lock to protect vhost sessions 2023-01-06 16:14:35 +00:00
vhost_rpc.c lib/vhost: use user_dev's lock to protect vhost sessions 2023-01-06 16:14:35 +00:00
vhost_scsi.c lib/vhost: use user_dev's lock to protect vhost sessions 2023-01-06 16:14:35 +00:00
vhost.c lib/vhost: use user_dev's lock to protect vhost sessions 2023-01-06 16:14:35 +00:00