Commit 91f037f6 authored by GangCao's avatar GangCao Committed by Jim Harris
Browse files

nvme: always construct the ctrlr in NVMe-oF for secondary process



Change-Id: Ib0dc68ff3e32f6caf00a94f566847fcac104af0e
Signed-off-by: default avatarGangCao <gang.cao@intel.com>
Reviewed-on: https://review.gerrithub.io/373898


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 0b1bbb45
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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);