Spdk/lib/vhost
Changpeng Liu 8c6de5ebfd lib/vhost: move registered flag to vhost-user device
Previously we use this flag to avoid to call `vhost_dev_unregister`
twice in `subsystem_fini`, but DPDK vhost library will check it,
we don't need this flag actually, but there is one race condition
between adding a new connection and unregistering the socket file
in different threads, so here we just move it to vhost-user device
as the first patch, and then use this flag in coming patch.

Change-Id: I658712dd20331a2e2eb5f4758bf76f748036a131
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15482
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
2022-12-07 00:49:35 +00:00
..
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00
rte_vhost_user.c lib/vhost: move registered flag to vhost-user device 2022-12-07 00:49: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 include/bdev_module.h: add SPDK_ prefix to macros 2022-11-22 10:03:57 +00:00
vhost_internal.h lib/vhost: move registered flag to vhost-user device 2022-12-07 00:49:35 +00:00
vhost_rpc.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
vhost_scsi.c lib/vhost_scsi: remove unnecessary checks 2022-12-07 00:49:35 +00:00
vhost.c vhost: defer vhost_dev_unregister until scsi tgts removed 2022-11-23 08:22:04 +00:00