]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueFS: do not flush metadata on flush()
authorSage Weil <sage@redhat.com>
Tue, 22 Dec 2015 21:38:34 +0000 (16:38 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Jan 2016 18:07:27 +0000 (13:07 -0500)
That's what fsync is for.  Moreover, this can lead to some squirreliness
if we trigger this from _flush_log().

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

index 56d7f4af8f5d41ada8cbc83e9eef31c64dac5039..060d8e3672d073c710ecd452972f02c46c8b2ab8 100644 (file)
@@ -988,12 +988,7 @@ int BlueFS::_flush(FileWriter *h, bool force)
     return 0;
   }
   if (length == 0) {
-    if (h->file->dirty) {
-      dout(10) << __func__ << " " << h << " no data, flushing metadata on "
-              << h->file->fnode << dendl;
-      return _flush_log();
-    }
-    dout(10) << __func__ << " " << h << " no dirty data or metadata on "
+    dout(10) << __func__ << " " << h << " no dirty data on "
             << h->file->fnode << dendl;
     return 0;
   }