]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/ObjectCacher: limit writeback IOs generated while holding lock 668/head
authorSage Weil <sage@inktank.com>
Tue, 1 Oct 2013 16:28:29 +0000 (09:28 -0700)
committerSage Weil <sage@inktank.com>
Tue, 1 Oct 2013 16:28:29 +0000 (09:28 -0700)
commitcce990efc8f2a58c8d0fa11c234ddf2242b1b856
tree47b986f94933e41032dbf9e7e03052ba9a0774f7
parent055e31359ac977943f014270cc56a1b7786abee3
osdc/ObjectCacher: limit writeback IOs generated while holding lock

While analyzing a log from Mike Dawson I saw a long stall while librbd's
objectcacher was starting lots (many hundreds) of IOs.  Limit the amount of
time we spend doing this at a time to allow IO replies to be processed so
that the cache remains responsive.

I'm not sure this warrants a tunable (which we would need to add for both
libcephfs and librbd).

Signed-off-by: Sage Weil <sage@inktank.com>
src/osdc/ObjectCacher.cc