73358c99e1
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: afe860aeb161 ("channel: Correctly defer unregisters if channels exist") Fixes: 5533c3d2087b ("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>