Spdk/lib/vhost
Dariusz Stojaczyk 483567b1ae vhost: don't hotremove luns if entire target is being removed
When a target is removed, spdk_scsi_dev_destruct
removes its luns, consequently closing bdev descriptors
and in vhost case - triggering target hotremove again.
This doesn't really have any negative consequences, as
the second hotremove just fails silently. But let's
cleanup this for sanity.

Change-Id: I47c76814696b49905b9fb00667e9529db3f58c12
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/396575
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: <shuhei.matsumoto.xt@hitachi.com>
2018-02-06 11:05:01 -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: unify vdev removal 2018-02-06 11:05:01 -05:00
vhost_internal.h vhost: unify vdev removal 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 vhost: don't hotremove luns if entire target is being removed 2018-02-06 11:05:01 -05:00
vhost.c vhost: unify vdev removal 2018-02-06 11:05:01 -05:00