Add logging for queue submit and complet counts
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/ioengines.c b/ioengines.c
index 9e1c556..fb68763 100644
--- a/ioengines.c
+++ b/ioengines.c
@@ -198,6 +198,8 @@
if (td->io_ops->getevents)
r = td->io_ops->getevents(td, min, max, t);
out:
+ if (r >= 0)
+ io_u_mark_complete(td, r);
dprint(FD_IO, "getevents: %d\n", r);
return r;
}
@@ -237,6 +239,11 @@
unlock_file(td, io_u->file);
+ if (!td->io_ops->commit) {
+ io_u_mark_submit(td, 1);
+ io_u_mark_complete(td, 1);
+ }
+
if (ret == FIO_Q_COMPLETED) {
if (io_u->ddir != DDIR_SYNC) {
io_u_mark_depth(td, 1);