]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: remove deferred_csum machinery 11243/head
authorSage Weil <sage@redhat.com>
Tue, 27 Sep 2016 21:07:16 +0000 (17:07 -0400)
committerSage Weil <sage@redhat.com>
Tue, 27 Sep 2016 21:07:16 +0000 (17:07 -0400)
commitad7487d6419a217d0339ed9e174331beb4c3db8f
treec418c52c4a3d84defee119a3eb045e8ecdd144fc
parente4ed13fed0f2953c0ee109a8923514df6b86f3af
os/bluestore: remove deferred_csum machinery

When we added this way back in d4f4fa0312d943dd0ce3c27f5fc56c7a753bb471,
we did not have our own buffer cache, and were relying
on the cache at the BlockDevice layer.  In that case,
we would have the problem of a partial wal overwrite
followed by another partial write that needed to read
the rest of the chunk.

However, now we have our own cache, and any data we write
in the _do_write_small() wal path will go into the cache,
which means we will never read the old data off of
disk and need the old csum values.

Remove this now-unnecessary kludge!

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