Skip to content

Commit a160388

Browse files
committed
nvme: use io passthru for write_uncor
The Write Uncorrectable command is part of the IO commands, thus use the nvme_submit_io_passthru interface instead of the admin one. Fixes: 9273989 ("nvme: rework nvme_io command") Signed-off-by: Daniel Wagner <[email protected]>
1 parent c0da9a5 commit a160388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvme.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7067,7 +7067,7 @@ static int write_uncor(int argc, char **argv, struct command *acmd, struct plugi
70677067

70687068
nvme_init_write_uncorrectable(&cmd, cfg.namespace_id, cfg.start_block,
70697069
cfg.block_count, cfg.dtype << 4, cfg.dspec);
7070-
err = nvme_submit_admin_passthru(hdl, &cmd, NULL);
7070+
err = nvme_submit_io_passthru(hdl, &cmd, NULL);
70717071
if (err < 0)
70727072
nvme_show_error("write uncorrectable: %s", nvme_strerror(err));
70737073
else if (err != 0)

0 commit comments

Comments
 (0)