numam-spdk/lib/vhost
JinYu d81721df65 vhost: fix the reuse of free memory issue in scsi
In the spdk_vhost_scsi_dev_remove() it takes a period of time
to remove all the tgts but before it is completed the scsi dev
has been freed. So don't free the scsi dev until all the tgts
have been removed.

Fix Github issue #932

Change-Id: Idf9293c70b8d5f82091db6dd5e018a5cb40eea36
Signed-off-by: JinYu <jin.yu@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/464654
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
2019-09-19 01:34:07 +00:00
..
Makefile make: add dependencies for the rte_vhost build. 2019-09-09 22:15:24 +00:00
rte_vhost_compat.c vhost: remove spdk_ prefix from private functions 2019-09-09 01:39:41 +00:00
vhost_blk.c vhost: make poll group refcount per-session 2019-09-09 01:39:41 +00:00
vhost_internal.h vhost: add a separate cpl cb to foreach_session() 2019-09-09 01:39:41 +00:00
vhost_nvme.c vhost: make poll group refcount per-session 2019-09-09 01:39:41 +00:00
vhost_rpc.c vhost: remove spdk_ prefix from private functions 2019-09-09 01:39:41 +00:00
vhost_scsi.c vhost: fix the reuse of free memory issue in scsi 2019-09-19 01:34:07 +00:00
vhost.c vhost: explicitly set VRING_USED_F_NO_NOTIFY 2019-09-09 05:41:56 +00:00