CPU burn engine fix
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index d54d02857b75ea0e721f040244e0c35807743b49..42ad37b59ec4111a1e1b6fe7a322d7fc1ca45a1f 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -733,7 +733,7 @@ struct io_u *get_io_u(struct thread_data *td)
        assert(f->flags & FIO_FILE_OPEN);
 
        if (io_u->ddir != DDIR_SYNC) {
-               if (!io_u->buflen) {
+               if (!io_u->buflen && !(td->io_ops->flags & FIO_NOIO)) {
                        dprint(FD_IO, "get_io_u: zero buflen on %p\n", io_u);
                        goto err_put;
                }