]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: no need to Onode::flush() in _do_read
authorSage Weil <sage@redhat.com>
Mon, 6 Mar 2017 18:51:30 +0000 (13:51 -0500)
committerSage Weil <sage@redhat.com>
Tue, 21 Mar 2017 18:56:27 +0000 (13:56 -0500)
We now ensure that deferred writes are in cache until the txc retires,
so there is no need to wait here.

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

index 7a7dde46a8a02b34cb1308a786a77bc670292d6e..1fb72aca6dc8f170777ce5f82d0e5903fbf1223b 100644 (file)
@@ -5778,7 +5778,6 @@ int BlueStore::_do_read(
   }
 
   utime_t start = ceph_clock_now();
-  o->flush();
   logger->tinc(l_bluestore_read_wait_flush_lat, ceph_clock_now() - start);
 
   start = ceph_clock_now();