+15
−7
Loading
Currently, enabling hotplug results in launching a poller, which probes devices and responds to hot-inserts/-removes. Without it, a device might be stuck attached to SPDK in cases of unexpected hot-remove (spdk_pci_device_detach will never be called). To work around that, users would be required to enable hotplug (via bdev_nvme_set_hotplug --enable) each time they want to attach a device to SPDK application. We could perform a NVMe PCIe transport scan without attaching new devices instead. This new scan could handle only a hot-remove of underlying device to prevent SPDK from hogging it. Change-Id: I09cc1cf25fa69856955995849ffb251cb64661b4 Signed-off-by:Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23573 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Community-CI: Mellanox Build Bot Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com>