Commit 062a5503 authored by Shuhei Matsumoto's avatar Shuhei Matsumoto Committed by Ben Walker
Browse files

nvme/perf: Use g_metacfg_pract_flag to bring PRACT setting



g_metacfg_prchk_flags had been used to pring PRACT setting. This
didn't cause any issue but will lead to misread.

Signed-off-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I2f6c48b12ffa511afa2663d31dc9467cec980c9c
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/468017


Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent a766dd00
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1499,7 +1499,7 @@ parse_metadata(const char *metacfg_str)

		if (strcmp(key, "PRACT") == 0) {
			if (*val == '1') {
				g_metacfg_prchk_flags = SPDK_NVME_IO_FLAGS_PRACT;
				g_metacfg_pract_flag = SPDK_NVME_IO_FLAGS_PRACT;
			}
		} else if (strcmp(key, "PRCHK") == 0) {
			if (strstr(val, "GUARD") != NULL) {