From b19c5ee1357ffb74f4de57b1617364bbbaacf1a0 Mon Sep 17 00:00:00 2001
From: Pankaj Raghav
Date: Fri, 7 Oct 2022 14:05:28 +0200
Subject: [PATCH] examples: uring-cmd-zoned: expand the reasoning behind QD1
Expand the reasoning behind using QD1 for zoned devices with io_uring_cmd
engine.
Signed-off-by: Pankaj Raghav
Signed-off-by: Vincent Fu
---
examples/uring-cmd-zoned.fio | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/examples/uring-cmd-zoned.fio b/examples/uring-cmd-zoned.fio
index 58e8f79e..89be61be 100644
--- a/examples/uring-cmd-zoned.fio
+++ b/examples/uring-cmd-zoned.fio
@@ -1,7 +1,11 @@
# io_uring_cmd I/O engine for nvme-ns generic zoned character device
#
-# NOTE: with write workload iodepth must be set to 1 as there is no IO
-# scheduler.
+# NOTE:
+# Regular writes against a zone should be limited to QD1, as the device can
+# reorder the requests.
+#
+# As the passthrough path do not use an IO scheduler (such as mq-deadline),
+# the queue depth should be limited to 1 to avoid zone invalid writes.
[global]
filename=/dev/ng0n1
--
2.25.1