Commit a1b9707c authored by Maciej Szwed's avatar Maciej Szwed Committed by Jim Harris
Browse files

bdev/nvme: Call bdev_nvme_create_bdevs only for non-OCSSD NVMe



OCSSD NVMe will use separate RPC call to create bdevs
so don't call bdev_nvme_create_bdevs for it.
Additionally change bdev_nvme_create_bdevs arguments
to take nvme_async_probe_ctx structure to simplify
future changes.

Signed-off-by: default avatarMaciej Szwed <maciej.szwed@intel.com>
Change-Id: I07ad8034058d8b3a0c78627db1fd0ba3db5a211b

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/468223


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent e4f9509b
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1245,10 +1245,12 @@ connect_attach_cb(void *cb_ctx, const struct spdk_nvme_transport_id *trid,
		goto end;
	}

	if (!spdk_nvme_ctrlr_is_ocssd_supported(ctrlr)) {
		rc = bdev_nvme_create_bdevs(ctx);
		if (rc) {
			SPDK_ERRLOG("Failed to create bdevs\n");
		}
	}

end:
	if (ctx->cb_fn) {