summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6da1fa7)
We wish to find the remainder of block count vs thinktime_blocks,
not the other way around. This makes thinktime_blocks work correctly.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
unsigned long long b;
b = td->io_blocks[0] + td->io_blocks[1];
unsigned long long b;
b = td->io_blocks[0] + td->io_blocks[1];
- if (!(td->thinktime_blocks % b))
+ if (!(b % td->thinktime_blocks))
usec_sleep(td, td->thinktime);
}
}
usec_sleep(td, td->thinktime);
}
}