From 9c4679bc779211bc820f6dcd64b41ee87827f070 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Fri, 1 Jun 2018 07:02:52 -0700 Subject: [PATCH] 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 Change-Id: I5e720ef44aa5c5f38e0fe91de091a89b9970fcb7 Reviewed-on: https://review.gerrithub.io/413283 Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker Reviewed-by: Changpeng Liu Tested-by: SPDK Automated Test System --- lib/nvme/nvme.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nvme/nvme.c b/lib/nvme/nvme.c index 6f7846d670..f8022a2d63 100644 --- a/lib/nvme/nvme.c +++ b/lib/nvme/nvme.c @@ -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.