From: jiangheng Date: Sun, 7 Sep 2014 06:48:03 +0000 (+0800) Subject: correct error of repeatedly adding io_size to off in do_bench_write X-Git-Tag: v0.86~134^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2415%2Fhead;p=ceph.git correct error of repeatedly adding io_size to off in do_bench_write Signed-off-by: jiangheng --- diff --git a/src/rbd.cc b/src/rbd.cc index 9a411ec7a730..fb2d8fa09928 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -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 &&