nvme: always construct the ctrlr in NVMe-oF for secondary process
Change-Id: Ib0dc68ff3e32f6caf00a94f566847fcac104af0e Signed-off-by: GangCao <gang.cao@intel.com> Reviewed-on: https://review.gerrithub.io/373898 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
0b1bbb4532
commit
91f037f6c3
@ -422,7 +422,11 @@ spdk_nvme_probe(const struct spdk_nvme_transport_id *trid, void *cb_ctx,
|
||||
|
||||
nvme_transport_ctrlr_scan(trid, cb_ctx, probe_cb, remove_cb);
|
||||
|
||||
if (!spdk_process_is_primary()) {
|
||||
/*
|
||||
* The RDMA trtype will always construct the ctrlr and go through the
|
||||
* normal process.
|
||||
*/
|
||||
if (!spdk_process_is_primary() && (trid->trtype == SPDK_NVME_TRANSPORT_PCIE)) {
|
||||
TAILQ_FOREACH(ctrlr, &g_spdk_nvme_driver->attached_ctrlrs, tailq) {
|
||||
nvme_ctrlr_proc_get_ref(ctrlr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user