]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: write padded data into buffer cache
authorSage Weil <sage@redhat.com>
Thu, 9 Mar 2017 14:38:50 +0000 (09:38 -0500)
committerSage Weil <sage@redhat.com>
Tue, 21 Mar 2017 18:56:27 +0000 (13:56 -0500)
commitbcd2a32912128970943f0376ec66257b886fd0b4
tree35180925c513d6e08f8965dcd67e8c40bb34f0b8
parentbc5bfdd59200754c453532cd97bf3bc263210e9f
os/bluestore: write padded data into buffer cache

We rely on the buffer cache to avoid reading any deferred write data. In
order for that to work, we have to ensure the entire block whose
overwrite is deferred is in the buffer cache.  Otherwise, a write to 0~5
that results in a deferred write could break a subsequent read from 5~5
that reads the same block from disk before the deferred write lands.

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