Fine-grained job level numa control
[fio.git] / engines / cpu.c
index c8eb6b30bf286e03c2a41d712d32e032eb51aa18..322dfde7412d9df075132bb8e3bd17c4ad713792 100644 (file)
@@ -9,7 +9,12 @@
 
 static int fio_cpuio_queue(struct thread_data *td, struct io_u fio_unused *io_u)
 {
-       __usec_sleep(td->o.cpucycle);
+       usec_spin(td->o.cpucycle);
+
+       if (io_u->buflen == 0)
+               io_u->buflen = 1;
+       io_u->resid = 0;
+
        return FIO_Q_COMPLETED;
 }