Spdk/lib/bdev
Dariusz Stojaczyk 7e0951d7f5 bdev_virtio: ensure thread safety for virtio_dev unregister
The io_device_unregister callback might be
deferred and called on a different core, but
the virtio device has to be released from
the same thread that created it. Hence, once
the unregister callback is called, it has
to send yet another msg to the vdev-owning
thread. Since all virtio devices are currently
created on the same thread, no mutexes are
needed. They will need to be introduced once
we publish the API to connect to virtio
controllers.

This patch also defers bdev_virtio module-
-finish until all virtio_devs are destroyed.

Change-Id: Iaafceefa1e862b839b5db8c6c4975bf51441a083
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/388835
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-11-27 12:18:24 -05:00
..
aio bdev: remove spdk_bdev_poller_start() lcore option 2017-10-18 20:28:29 -04:00
error bdev: add callback to free part_base 2017-10-01 21:57:00 -04:00
gpt bdev/gpt: check against get_io_channel failure 2017-10-19 00:33:06 -04:00
lvol lvol: fix lvol store examine when no lvols present 2017-11-21 16:54:46 -05:00
malloc bdev/malloc: allow user to specify bdev name 2017-10-11 23:55:45 -04:00
null bdev/null: add Write Zeroes support 2017-09-25 16:31:49 -04:00
nvme bdev/nvme: support meta data on vendor specific commands 2017-11-20 19:26:48 -05:00
pmem pmem: bdev names for pmem bdevs 2017-10-27 13:10:07 -04:00
rbd bdev: remove spdk_bdev_poller_start() lcore option 2017-10-18 20:28:29 -04:00
rpc bdev: add callback to spdk bdev unregister and bdev destruct 2017-10-26 17:23:58 -04:00
split bdev: add callback to free part_base 2017-10-01 21:57:00 -04:00
virtio bdev_virtio: ensure thread safety for virtio_dev unregister 2017-11-27 12:18:24 -05:00
bdev.c bdev/nvme: support meta data on vendor specific commands 2017-11-20 19:26:48 -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