Commit e6819a3c authored by GangCao's avatar GangCao Committed by Ben Walker
Browse files

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: default avatarGangCao <gang.cao@intel.com>
Reviewed-on: https://review.gerrithub.io/429185


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent b7201f8e
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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