In cases we probe without a specific trid, the underlying rte_bus_probe() in spdk_pci_enumerate() might fail to initialize some devices, but still return with code 0, That's technically correct, as we asked just to probe devices on the bus and that's what it did. Some devices might have been initialized, others not. In secondary process we blindly assumed all devices were probed successfully, which might have eventually led to assert failures, as current process was not on the ctrlr->active_procs list. To fix it, just add an additional check before attaching the controller in secondary process. Change-Id: If015b1e562052a9189ed1a48091b209bd2dd5f2a Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/431727 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> |
||
---|---|---|
.. | ||
include | ||
lib | ||
Makefile | ||
unittest.sh |