]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: fix bench-write infinite loop
authorJosh Durgin <josh.durgin@inktank.com>
Wed, 26 Dec 2012 22:24:22 +0000 (14:24 -0800)
committerSage Weil <sage@inktank.com>
Sun, 27 Jan 2013 09:28:11 +0000 (01:28 -0800)
commita16c6f3dc278e19e66776ffde45de3ff0db46a6c
tree5040b59585443d789cd0789ad0450db4d6c5afaf
parent76f93751d3603e3fb5c4b9e14bfdac406d8d1a58
rbd: fix bench-write infinite loop

I/O was continously submitted as long as there were few enough ops in
flight. If the number of 'threads' was high, or caching was turned on,
there would never be that many ops in flight, so the loop would continue
indefinitely. Instead, submit at most io_threads ops per offset.

Fixes: #3413
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage.weil@inktank.com>
(cherry picked from commit d81ac8418f9e6bbc9adcc69b2e7cb98dd4db6abb)
src/rbd.cc