commit | d0656a93fbacc0cf0d6f405407b55b768affa949 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Fri Feb 01 18:33:23 2008 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Fri Feb 01 18:33:23 2008 +0100 |
tree | 6294f14d7363cf8987d932ea95c49317d43b5f6c | |
parent | 2ba1c290d09af6d630d84a58b97b8032f73bc2ce [diff] [blame] |
CPU burn engine fix It's ok to have zero buflen, if we are not doing real IO. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/io_u.c b/io_u.c index d54d028..42ad37b 100644 --- a/io_u.c +++ b/io_u.c
@@ -733,7 +733,7 @@ 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; }