]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Enforce cache size on read requests
authorJason Dillaman <dillaman@redhat.com>
Sun, 7 Sep 2014 02:59:40 +0000 (22:59 -0400)
committerSage Weil <sage@redhat.com>
Fri, 3 Oct 2014 00:54:59 +0000 (17:54 -0700)
commitb2efe7bbddcc7eabb16ced15fa751c891fd1a44e
treeb45031561e87d5a9471547ee553d71b58ec24092
parent5f601f099be98c2b061cc94fb06917e7543f3efe
Enforce cache size on read requests

In-flight cache reads were not previously counted against
new cache read requests, which could result in very large
cache usage.  This effect is most noticeable when writing
small chunks to a cloned image since each write requires
a full object read from the parent.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 4fc9fffc494abedac0a9b1ce44706343f18466f1)

Conflicts:
src/osdc/ObjectCacher.h
src/osdc/ObjectCacher.cc
src/osdc/ObjectCacher.h