From a1ce725c0a1bd39cf01b7a01a46387a7aee78108 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Fri, 18 Oct 2019 16:56:40 -0700 Subject: [PATCH] nvme_fabric: enable the discovery_ctrlr admin queue As the todo states later on in the function, the discovery controller should really be initialized through traditional methods, but it was hacked in. For now, enable the admin qpair to get past the non-standard nature of this controller. Change-Id: I2cbf1cd47d7249ae3d12bcfc2e8d21e8fb98df7e Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471779 Tested-by: SPDK CI Jenkins Reviewed-by: Changpeng Liu Reviewed-by: Alexey Marchuk Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- lib/nvme/nvme_fabric.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/nvme/nvme_fabric.c b/lib/nvme/nvme_fabric.c index a3bf5dbec..1a87b1382 100644 --- a/lib/nvme/nvme_fabric.c +++ b/lib/nvme/nvme_fabric.c @@ -240,6 +240,7 @@ nvme_fabric_ctrlr_scan(struct spdk_nvme_probe_ctx *probe_ctx, discovery_opts.keep_alive_timeout_ms = 0; discovery_ctrlr = nvme_transport_ctrlr_construct(&probe_ctx->trid, &discovery_opts, NULL); + nvme_qpair_set_state(discovery_ctrlr->adminq, NVME_QPAIR_ENABLED); if (discovery_ctrlr == NULL) { return -1; }