projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cpuio engine cpuload bug fix
[fio.git]
/
engines
/
cpu.c
diff --git
a/engines/cpu.c
b/engines/cpu.c
index 8bc9fd5c3c8c8919d4618bf6f149fb5b142093a6..322dfde7412d9df075132bb8e3bd17c4ad713792 100644
(file)
--- a/
engines/cpu.c
+++ b/
engines/cpu.c
@@
-10,6
+10,11
@@
static int fio_cpuio_queue(struct thread_data *td, struct io_u fio_unused *io_u)
{
usec_spin(td->o.cpucycle);
+
+ if (io_u->buflen == 0)
+ io_u->buflen = 1;
+ io_u->resid = 0;
+
return FIO_Q_COMPLETED;
}