]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: buffer cache_private field, returned by discard
authorSage Weil <sage@redhat.com>
Fri, 10 Jun 2016 15:36:05 +0000 (11:36 -0400)
committerSage Weil <sage@redhat.com>
Wed, 22 Jun 2016 15:28:41 +0000 (11:28 -0400)
commit98748b36232d6557085c00adfb002dda72552910
tree310cdc5c5de838a95a949a1eb53621d6057c0257
parentfc6e11fedf46799d7dce92d8ca91142974eac97a
os/bluestore: buffer cache_private field, returned by discard

2Q (and likly MQ?) need to know when we re-add a block that was previously
evicted.  We track these as STATE_EMPTY buffers, but we throw them out
with _discard before we add the (re)read data into the BufferSpace. Add
a Buffer field called cache_private that is returned by discard (actually,
a max over everything that is discarded) that a cache implementation can
use to discover it has re-read a recently evicted item.

The Cache implemention needs to set cache_private values such that the MAX
over them is what it actually wants...

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h