Spdk/lib/bdev
Dariusz Stojaczyk fcf3af24ff bdev/virtio: reuse io_channels for the target scan
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>
2017-12-11 19:46:01 -05:00
..
aio bdev/aio: make sure the aio backend support the lun reset command. 2017-12-11 11:43:59 -05:00
error bdev: add callback to free part_base 2017-10-01 21:57:00 -04:00
gpt log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
lvol astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
malloc astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
null log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
nvme astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
pmem log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
rbd astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
rpc bdev: add callback to spdk bdev unregister and bdev destruct 2017-10-26 17:23:58 -04:00
split log: rename SPDK_TRACE_* to SPDK_LOG_* 2017-12-07 12:23:19 -05:00
virtio bdev/virtio: reuse io_channels for the target scan 2017-12-11 19:46:01 -05:00
bdev.c bdev: Correctly defer completion of resets until channels are unlocked 2017-12-11 14:58:17 -05:00
Makefile bdev_virtio: added --without-virtio configure flag 2017-10-19 19:06:12 -04:00
scsi_nvme.c nvme_spec: remove SGL Sub Type Invalid status code 2017-09-22 17:11:53 -04:00
vtune.c bdev: #include VTune file to control warnings 2017-06-08 12:44:25 -04:00