Commit 9c4679bc authored by Jim Harris's avatar Jim Harris Committed by Changpeng Liu
Browse files

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: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I5e720ef44aa5c5f38e0fe91de091a89b9970fcb7

Reviewed-on: https://review.gerrithub.io/413283


Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
parent 392f3ef5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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.