]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/BlockDevice: make flush a no-op if there was no IO
authorSage Weil <sage@redhat.com>
Tue, 5 Jan 2016 03:04:28 +0000 (22:04 -0500)
committerSage Weil <sage@redhat.com>
Fri, 8 Jan 2016 18:10:18 +0000 (13:10 -0500)
commit3120cbb9dbb5881d50b5fb4e712e44dc6898ab88
treeefec282a8320283cf759629a4c3f266d2fe679d1
parent3974bb30d573b5c840f496c9cca1c44e92d358bb
os/bluestore/BlockDevice: make flush a no-op if there was no IO

fdatasync(2) does a cache flush on the device, which we want to avoid if
we didn't actually write anything.

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