]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Fix read performance regression in ObjectCacher 2672/head
authorAdam Crume <adamcrume@gmail.com>
Wed, 8 Oct 2014 00:45:53 +0000 (17:45 -0700)
committerAdam Crume <adamcrume@gmail.com>
Wed, 8 Oct 2014 00:45:53 +0000 (17:45 -0700)
commit82175ec94acc89dc75da0154f86187fb2e4dbf5e
treeb5dc4a1873bd8c6bece919d5d24c121ee0df61ff
parent1036e9827c190a7eb8455a913e1e59bd356da2a7
Fix read performance regression in ObjectCacher

The regression was introduced in commit
4fc9fffc494abedac0a9b1ce44706343f18466f1.  The problem is that the cache
thinks it's full (when it's not), so it defers the read.  This change
frees up cache space if necessary and only defers the read if enough
space cannot be freed.

Fixes: 9513
Signed-off-by: Adam Crume <adamcrume@gmail.com>
src/osdc/ObjectCacher.cc
src/osdc/ObjectCacher.h