]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/kstore: cache in-flight stripe updates in memory
authorSage Weil <sage@redhat.com>
Thu, 24 Dec 2015 18:39:43 +0000 (13:39 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Jan 2016 18:08:54 +0000 (13:08 -0500)
commit645b535042273d88a0efe05d158565d17b5b8e9b
treeec5273d589c0c8cd42126562cdbbc74b92f0f90e
parent5c6269081eb75613576e7d2c57c58ff788e6924b
os/kstore: cache in-flight stripe updates in memory

The write process may do a read/modify/write on a stripe.  In order to
allow multiple writes to coexist within the same transaction, we need to
be able to "see" our writes.

Clear the "cached" stripe values when the last TransContext touching an
onode is finished.  In theory we could pin memory with a constant stream
of updates to an object; we may need to address that later.

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