79c7744efb
During virtio_pci_dev_probe, if enum_cb fails, hw needs to be released. But in bdev_virtio, if vdev fails after initialization, it will enter the bdev destruction process which call the modern_destruct_dev function and hw will be released during the process. So we will encounter the problem of hw being released twice. Change-Id: Ifba35284c072355ba0e10428b597a1894d32d59e Signed-off-by: Jin Yu <jin.yu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3564 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
spdk_virtio.map | ||
vhost_user.c | ||
vhost_user.h | ||
virtio_pci.c | ||
virtio_user.c | ||
virtio.c |