lib/nvmf_tgt:remove the g_active_poll_groups variable

So far this global variable is just for tracking purpose.
Would like to remove it by now and if needed for other
usage, we can have it there later.

Change-Id: I2d1f36de46acc47bcf9ce841c0b234be40b0263c
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.gerrithub.io/429185
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
GangCao 2018-10-12 16:23:33 -04:00 committed by Ben Walker
parent b7201f8e7f
commit e6819a3c52

View File

@ -79,7 +79,6 @@ static uint32_t g_tgt_core;
static struct nvmf_tgt_poll_group *g_poll_groups = NULL;
static size_t g_num_poll_groups = 0;
static size_t g_active_poll_groups = 0;
static struct spdk_poller *g_acceptor_poller = NULL;
@ -231,9 +230,6 @@ nvmf_tgt_destroy_poll_group(void *ctx)
spdk_nvmf_poll_group_destroy(pg->group);
pg->group = NULL;
assert(g_active_poll_groups > 0);
g_active_poll_groups--;
}
static void
@ -252,8 +248,6 @@ nvmf_tgt_create_poll_group(void *ctx)
pg->group = spdk_nvmf_poll_group_create(g_spdk_nvmf_tgt);
assert(pg->group != NULL);
g_active_poll_groups++;
}
static void