Spdk/test
Darek Stojaczyk 04ee899fcf nvme: improve probe error handling in MP even further
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>
2018-11-02 18:30:09 +00:00
..
app make: simplify rdma dependency linking 2018-09-14 22:56:46 +00:00
bdev test/bdev: change crypto device conf based on environment 2018-10-24 23:29:28 +00:00
blobfs scripts: use python3 in all scripts 2018-09-14 22:24:30 +00:00
blobstore vbdev_crypto.c: Always initialize crypto drivers up front 2018-10-24 23:29:28 +00:00
common autotest: match exact address in waitforlisten function 2018-11-02 17:55:25 +00:00
config_converter scripts: add config converter 2018-09-18 15:24:40 +00:00
cpp_headers build: add @: to remaining 'all' targets 2018-02-14 17:38:25 -05:00
env memory: register each hotplugged page separately 2018-10-11 18:59:11 +00:00
event test/event_perf: use less memory 2018-07-26 05:28:52 +00:00
ioat ioat: remove ioat kperf kernel driver test harness 2018-04-30 17:11:53 +00:00
iscsi_tgt test/iscsi: exclude *.o from ext4test.sh rsync 2018-10-15 22:20:17 +00:00
json_config test: Set nvmf transport opts explicitly in tests. 2018-11-02 18:04:06 +00:00
lvol lvol: add a omitted case in usage function 2018-10-31 22:05:07 +00:00
nvme mk: introduce ldflags print target 2018-10-16 12:40:43 +00:00
nvmf nvmf: Shorten the shutdown test 2018-11-02 16:39:37 +00:00
pmem Check file permissions in the check_format script 2018-10-04 23:08:12 +00:00
rpc_client jsonrpc_client: make ID and method optional when starting request 2018-10-18 16:07:37 +00:00
spdkcli test: Set nvmf transport opts explicitly in tests. 2018-11-02 18:04:06 +00:00
unit nvme: improve probe error handling in MP even further 2018-11-02 18:30:09 +00:00
vhost test/vhost: Fix vhost live migration 2018-10-15 22:49:06 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00