Merge pull request #2415 from johnkeepmoving/fix-off-error-in-rbd.cc

correct error of repeatedly adding io_size to off in do_bench_write

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
This commit is contained in:
Loic Dachary 2014-09-07 09:22:08 +02:00
commit 21e84d6728

View File

@ -924,7 +924,7 @@ static int do_bench_write(librbd::Image& image, uint64_t io_size,
printf(" SEC OPS OPS/SEC BYTES/SEC\n");
uint64_t off;
for (off = 0; off < io_bytes; off += io_size) {
for (off = 0; off < io_bytes; ) {
b.wait_for(io_threads - 1);
i = 0;
while (i < io_threads && off < io_bytes &&