From 97d35377c5b91551cff38baae29a09a895f2622c Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Fri, 3 May 2019 11:16:04 -0700 Subject: [PATCH] nvmf: Don't assume the first core is core 0 when scheduling poll groups Change-Id: I883ffacca26be0d4fc0a3cfdac5a9c0391b7585e Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453013 Tested-by: SPDK CI Jenkins Reviewed-by: Seth Howell Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- lib/event/subsystems/nvmf/nvmf_tgt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/event/subsystems/nvmf/nvmf_tgt.c b/lib/event/subsystems/nvmf/nvmf_tgt.c index 727f2c826..909fb7a09 100644 --- a/lib/event/subsystems/nvmf/nvmf_tgt.c +++ b/lib/event/subsystems/nvmf/nvmf_tgt.c @@ -158,7 +158,7 @@ nvmf_tgt_get_pg(struct spdk_nvmf_qpair *qpair) struct spdk_nvme_transport_id trid; struct nvmf_tgt_host_trid *tmp_trid = NULL, *new_trid = NULL; int ret; - uint32_t core = 0; + uint32_t core = spdk_env_get_first_core(); switch (g_spdk_nvmf_tgt_conf->conn_sched) { case CONNECT_SCHED_HOST_IP: