Skip to content

Commit cfb08be

Browse files
ikegami-tigaw
authored andcommitted
nvme: fix to set nvme_io_args reftag value
Since the value is used by the libnvme nvme_io() function. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent b6bd051 commit cfb08be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nvme.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7245,6 +7245,7 @@ static int write_zeroes(int argc, char **argv, struct command *cmd, struct plugi
72457245
.slba = cfg.start_block,
72467246
.nlb = cfg.block_count,
72477247
.control = control,
7248+
.reftag = (__u32)cfg.ref_tag,
72487249
.reftag_u64 = cfg.ref_tag,
72497250
.apptag = cfg.app_tag,
72507251
.appmask = cfg.app_tag_mask,
@@ -8309,6 +8310,7 @@ static int submit_io(int opcode, char *command, const char *desc, int argc, char
83098310
.sts = sts,
83108311
.pif = pif,
83118312
.dspec = cfg.dspec,
8313+
.reftag = (__u32)cfg.ref_tag,
83128314
.reftag_u64 = cfg.ref_tag,
83138315
.apptag = cfg.app_tag,
83148316
.appmask = cfg.app_tag_mask,
@@ -8485,6 +8487,7 @@ static int verify_cmd(int argc, char **argv, struct command *cmd, struct plugin
84858487
.slba = cfg.start_block,
84868488
.nlb = cfg.block_count,
84878489
.control = control,
8490+
.reftag = cfg.ref_tag,
84888491
.reftag_u64 = cfg.ref_tag,
84898492
.apptag = cfg.app_tag,
84908493
.appmask = cfg.app_tag_mask,

0 commit comments

Comments
 (0)