X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fnull.c;h=bf7885e92187e68488c3c5109ca52ed77cd4fd36;hp=85d6847e18388eee2822f7b7cf38b7d230b5ec27;hb=f0c48a70c5cb8e9f04d263999e0b8d9188f08562;hpb=e7d2e61694c62b90a2fb84c012b4edcc1973d72c diff --git a/engines/null.c b/engines/null.c index 85d6847e..bf7885e9 100644 --- a/engines/null.c +++ b/engines/null.c @@ -46,6 +46,7 @@ static int fio_null_commit(struct thread_data *td) struct null_data *nd = td->io_ops->data; if (!nd->events) { + io_u_mark_submit(td, nd->queued); nd->events = nd->queued; nd->queued = 0; } @@ -53,7 +54,7 @@ static int fio_null_commit(struct thread_data *td) return 0; } -static int fio_null_queue(struct thread_data fio_unused *td, struct io_u *io_u) +static int fio_null_queue(struct thread_data *td, struct io_u *io_u) { struct null_data *nd = td->io_ops->data; @@ -82,7 +83,6 @@ static void fio_null_cleanup(struct thread_data *td) if (nd->io_us) free(nd->io_us); free(nd); - td->io_ops->data = NULL; } }