b.wait_for(io_threads - 1);
i = 0;
while (i < io_threads && off < io_bytes) {
+ if (!b.start_io(io_threads, thread_offset[i], io_size, op_flags)) {
+ break;
+ }
if (random) {
thread_offset[i] = (rand() % (size / io_size)) * io_size;
} else {
if (thread_offset[i] + io_size > size)
thread_offset[i] = 0;
}
-
- if (!b.start_io(io_threads, thread_offset[i], io_size, op_flags))
- break;
-
++i;
++ios;
off += io_size;