8ee5ca50e7
Explicitly attaching a PCI device with spdk_pci_device_attach() bypasses any kind of blacklists and should be only used on a user request. Hotplug uevent is certainly not a user request and should respect the blacklist, hence it's now changed to call spdk_pci_enumerate() to probe new devices. The enumeration callback will reject devices other that the one we got hotplug request for, so no behavior is changed in that matter. This patch also fixes undefined behavior caused by reading unitialized struct nvme_pcie_enum_cb; Change-Id: I1399fbdd426152a13ed75c85a52bc7f0491ce287 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/433867 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
Makefile | ||
nvme_ctrlr_cmd.c | ||
nvme_ctrlr_ocssd_cmd.c | ||
nvme_ctrlr.c | ||
nvme_fabric.c | ||
nvme_internal.h | ||
nvme_ns_cmd.c | ||
nvme_ns_ocssd_cmd.c | ||
nvme_ns.c | ||
nvme_pcie.c | ||
nvme_qpair.c | ||
nvme_quirks.c | ||
nvme_rdma.c | ||
nvme_tcp.c | ||
nvme_transport.c | ||
nvme_uevent.c | ||
nvme_uevent.h | ||
nvme.c |