fcf3af24ff
Rather than acquiring an exclusive virtqueue for the target scan, (re)use an existing one from io_channel on the scanning thread. The goal is to be able to rescan the virtio device in runtime (hot-attach/detach). Now that scan can be done on existing queues, it is no longer guaranteed that rings have enough space to enqueue all requests. This will be fixed in subsequent patches. Change-Id: I0a39460c0ddb52592ae6828e5a7f51056ada2696 Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/390111 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>