From: Sage Weil Date: Fri, 12 May 2017 20:06:51 +0000 (-0400) Subject: os/bluestore/KernelDevice: fix flush() vs sync write() X-Git-Tag: v12.1.0~10^2~63^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15034%2Fhead;p=ceph.git os/bluestore/KernelDevice: fix flush() vs sync write() We need to set the atomic flag so that a flush will actually flush. Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/KernelDevice.cc b/src/os/bluestore/KernelDevice.cc index 52cab96bbdd4..f5069cf98b36 100644 --- a/src/os/bluestore/KernelDevice.cc +++ b/src/os/bluestore/KernelDevice.cc @@ -559,6 +559,9 @@ int KernelDevice::_sync_write(uint64_t off, bufferlist &bl, bool buffered) return r; } } + + io_since_flush.store(true); + return 0; }