X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=16ea928fe727c094f651e75922f52308eb36c70a;hp=1b510dfe1daef46cd2be9c17255fff438a8d9928;hb=755200a326a33e5e19b16dfd5e013dd98bcf1916;hpb=9978463287982c2f73f171ec9a79979939dee47a;ds=inline diff --git a/ioengines.c b/ioengines.c index 1b510dfe..16ea928f 100644 --- a/ioengines.c +++ b/ioengines.c @@ -189,6 +189,9 @@ int td_io_queue(struct thread_data *td, struct io_u *io_u) { fio_gettime(&io_u->issue_time, NULL); + if (io_u->ddir != DDIR_SYNC) + td->io_issues[io_u->ddir]++; + return td->io_ops->queue(td, io_u); } @@ -199,3 +202,11 @@ int td_io_init(struct thread_data *td) return 0; } + +int td_io_commit(struct thread_data *td) +{ + if (td->io_ops->commit) + return td->io_ops->commit(td); + + return 0; +}