nvmf: remove unused g_nvmf_tgt.mutex

It isn't protecting anything any more.

Change-Id: Ife14809751dd6fb52b787489f87e9fd8be0cbdf6
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-07-25 14:27:18 -07:00
parent 420dfa124d
commit d693613626
2 changed files with 0 additions and 11 deletions

View File

@ -123,12 +123,6 @@ nvmf_tgt_init(int max_queue_depth, int max_queues_per_sess)
g_nvmf_tgt.max_queues_per_session = max_queues_per_sess;
g_nvmf_tgt.max_queue_depth = max_queue_depth;
rc = pthread_mutex_init(&g_nvmf_tgt.mutex, NULL);
if (rc != 0) {
SPDK_ERRLOG("mutex_init() failed\n");
return -1;
}
/* init nvmf specific config options */
if (!g_nvmf_tgt.sin_port) {
g_nvmf_tgt.sin_port = htons(SPDK_NVMF_DEFAULT_SIN_PORT);
@ -171,8 +165,6 @@ nvmf_tgt_subsystem_fini(void)
spdk_shutdown_nvmf_subsystems();
spdk_nvmf_transport_fini();
pthread_mutex_destroy(&g_nvmf_tgt.mutex);
if (spdk_nvmf_check_pools() != 0) {
return -1;
}

View File

@ -38,7 +38,6 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <pthread.h>
#include "spdk/nvmf_spec.h"
#include "spdk/assert.h"
@ -94,8 +93,6 @@ struct __attribute__((packed)) nvme_read_cdw13 {
};
struct spdk_nvmf_globals {
pthread_mutex_t mutex;
int max_queue_depth;
int max_queues_per_session;