]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Fix read performance regression in ObjectCacher
authorAdam Crume <adamcrume@gmail.com>
Wed, 8 Oct 2014 00:45:53 +0000 (17:45 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 20 Oct 2014 20:49:04 +0000 (13:49 -0700)
commit65be257e9295619b960b49f6aa80ecdf8ea4d16a
tree01f9b03a04eb438bcaf238a1befb04c7f7f63ded
parent27d5ae61b1805b6f5c7ce950454ef287da19af76
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>
(cherry picked from commit 82175ec94acc89dc75da0154f86187fb2e4dbf5e)
src/osdc/ObjectCacher.cc
src/osdc/ObjectCacher.h