]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/KernelDevice: fix flush() vs sync write() 15034/head
authorSage Weil <sage@redhat.com>
Fri, 12 May 2017 20:06:51 +0000 (16:06 -0400)
committerSage Weil <sage@redhat.com>
Fri, 19 May 2017 13:20:27 +0000 (09:20 -0400)
We need to set the atomic flag so that a flush will actually flush.

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

index 52cab96bbdd4f0e38251b4a6ec6541a7f3dc9fdf..f5069cf98b36cee5c1f3fab83d40403bc9b5ee09 100644 (file)
@@ -559,6 +559,9 @@ int KernelDevice::_sync_write(uint64_t off, bufferlist &bl, bool buffered)
       return r;
     }
   }
+
+  io_since_flush.store(true);
+
   return 0;
 }