nvme: rename g_pid to g_spdk_nvme_pid

This variable will no longer be static in a future patch.
So make the name a bit more verbose since it will now
be visible outside of the module that defines it.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I5e720ef44aa5c5f38e0fe91de091a89b9970fcb7

Reviewed-on: https://review.gerrithub.io/413283
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Jim Harris 2018-06-01 07:02:52 -07:00 committed by Changpeng Liu
parent 392f3ef589
commit 9c4679bc77

View File

@ -37,7 +37,7 @@
#define SPDK_NVME_DRIVER_NAME "spdk_nvme_driver"
struct nvme_driver *g_spdk_nvme_driver;
static pid_t g_pid;
static pid_t g_spdk_nvme_pid;
int32_t spdk_nvme_retry_count;
@ -174,7 +174,7 @@ nvme_allocate_request(struct spdk_nvme_qpair *qpair,
req->payload = *payload;
req->payload_size = payload_size;
req->qpair = qpair;
req->pid = g_pid;
req->pid = g_spdk_nvme_pid;
return req;
}
@ -303,7 +303,7 @@ nvme_driver_init(void)
int socket_id = -1;
/* Each process needs its own pid. */
g_pid = getpid();
g_spdk_nvme_pid = getpid();
/*
* Only one thread from one process will do this driver init work.