Spdk/lib/vhost
Dariusz Stojaczyk 33285599ef vhost: fix double module fini on vhost init failure
Doing a manual vhost module fini followed
by an spdk_app_stop is wrong, as the app_stop
will trigger the vhost module fini again.
This will potentially free the g_num_ctrlrs
twice. Doing just spdk_app_stop is enough.

Fixes #238

Fixes: 3fb4bc717b ("vhost: move app fini to the vhost subsystem")
Change-Id: I70f886f6792ffc5c499a8d8cb0b6ab01855f7e9b
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/399129
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2018-02-12 12:13:23 -05:00
..
rte_vhost vhost: add live migration support 2018-01-30 15:42:40 -05:00
Makefile env: Automatically register new memory with the IOMMU 2017-09-01 15:25:24 -04:00
vhost_blk.c vhost/blk: set blkcfg->num_queues to the max available queues number 2018-02-09 13:14:43 -05:00
vhost_internal.h vhost: remove vdev->type field 2018-02-06 11:05:01 -05:00
vhost_rpc.c vhost: unify vdev removal 2018-02-06 11:05:01 -05:00
vhost_scsi.c Remove trailing whitespace before \n in printf() 2018-02-06 11:16:50 -05:00
vhost.c vhost: fix double module fini on vhost init failure 2018-02-12 12:13:23 -05:00