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:
parent
420dfa124d
commit
d693613626
@ -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_queues_per_session = max_queues_per_sess;
|
||||||
g_nvmf_tgt.max_queue_depth = max_queue_depth;
|
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 */
|
/* init nvmf specific config options */
|
||||||
if (!g_nvmf_tgt.sin_port) {
|
if (!g_nvmf_tgt.sin_port) {
|
||||||
g_nvmf_tgt.sin_port = htons(SPDK_NVMF_DEFAULT_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_shutdown_nvmf_subsystems();
|
||||||
spdk_nvmf_transport_fini();
|
spdk_nvmf_transport_fini();
|
||||||
|
|
||||||
pthread_mutex_destroy(&g_nvmf_tgt.mutex);
|
|
||||||
|
|
||||||
if (spdk_nvmf_check_pools() != 0) {
|
if (spdk_nvmf_check_pools() != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <pthread.h>
|
|
||||||
|
|
||||||
#include "spdk/nvmf_spec.h"
|
#include "spdk/nvmf_spec.h"
|
||||||
#include "spdk/assert.h"
|
#include "spdk/assert.h"
|
||||||
@ -94,8 +93,6 @@ struct __attribute__((packed)) nvme_read_cdw13 {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct spdk_nvmf_globals {
|
struct spdk_nvmf_globals {
|
||||||
pthread_mutex_t mutex;
|
|
||||||
|
|
||||||
int max_queue_depth;
|
int max_queue_depth;
|
||||||
int max_queues_per_session;
|
int max_queues_per_session;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user