]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Enforce cache size on read requests 2422/head
authorJason Dillaman <dillaman@redhat.com>
Sun, 7 Sep 2014 02:59:40 +0000 (22:59 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 7 Sep 2014 03:04:50 +0000 (23:04 -0400)
commit4fc9fffc494abedac0a9b1ce44706343f18466f1
tree8a57c183a3d321c921dceeefbdf72e32b3dc3e55
parentb32712f1fc98e7abe3dc5fa778cbb779702f940d
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>
src/osdc/ObjectCacher.cc
src/osdc/ObjectCacher.h