numam-spdk/lib/bdev
Dariusz Stojaczyk 73358c99e1 util/nvme: added io_device unregister callback
Patch afe860ae deferred freeing the io_device. However, for nvme, the
io_device context (spdk_nvme_ctrlr) is still being destructed before
io_channels are destroyed, causing segfaults on hotremove.

This patch defers io_device context destruction and fixes nvme
hotremove.

Fixes: afe860aeb1 ("channel: Correctly defer unregisters if channels exist")
Fixes: 5533c3d208 ("util: defer put_io_channel")

Change-Id: I7af699174cac0c6c6a6faa2cc65418c47347eb9a
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/370459
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-07-20 16:07:02 -04:00
..
aio bdev: remove differentiation between bdev and vbdev modules 2017-07-14 13:31:30 -04:00
error bdev: pass descriptors for I/O operations 2017-07-14 13:31:30 -04:00
gpt gpt/split: implemented hotremove 2017-07-19 17:09:30 -04:00
malloc bdev: remove differentiation between bdev and vbdev modules 2017-07-14 13:31:30 -04:00
null bdev: remove differentiation between bdev and vbdev modules 2017-07-14 13:31:30 -04:00
nvme util/nvme: added io_device unregister callback 2017-07-20 16:07:02 -04:00
rbd bdev: remove differentiation between bdev and vbdev modules 2017-07-14 13:31:30 -04:00
rpc bdev: add vbdev claim/release semantics 2017-07-14 13:31:30 -04:00
split gpt/split: implemented hotremove 2017-07-19 17:09:30 -04:00
bdev.c util/nvme: added io_device unregister callback 2017-07-20 16:07:02 -04:00
Makefile GPT: add GPT bdev support 2017-07-06 13:44:37 -04:00
scsi_nvme.c bdev: add API to translate to SCSI status 2017-05-04 09:11:42 -07:00
vtune.c bdev: #include VTune file to control warnings 2017-06-08 12:44:25 -04:00