numam-spdk/examples/nvme/hotplug
JinYu 885bc99596 nvme/hotplug: add ctrlr a timeout callback in hotplug example
The example would endlessly loop in unregister_dev()->spdk_nvme_
ctrlr_free_io_qpair(), if the device has been removed after leave
hotplug monitoring. Add the timeout callback to handle this corner
case. The case will not be friendly to newcomers, if we use the event
framework to update it, because the hotplug has been hidden in frame
work.

Change-Id: I33a81efd356fdf1e7921f5721e9d95936470e8b0
Signed-off-by: JinYu <jin.yu@intel.com>
Reviewed-on: https://review.gerrithub.io/c/439822
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-02-25 23:12:29 +00:00
..
.gitignore Add missing .gitignore files for binaries 2016-12-06 09:51:00 -07:00
hotplug.c nvme/hotplug: add ctrlr a timeout callback in hotplug example 2019-02-25 23:12:29 +00:00
Makefile example: Add example for nvme hotplug. 2016-12-01 10:23:10 +08:00