projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ba1c29
)
CPU burn engine fix
author
Jens Axboe
<jens.axboe@oracle.com>
Fri, 1 Feb 2008 17:33:23 +0000
(18:33 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Fri, 1 Feb 2008 17:33:23 +0000
(18:33 +0100)
It's ok to have zero buflen, if we are not doing real IO.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c
patch
|
blob
|
blame
|
history
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;
}