]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: keep onode refs for lifetime of obc
authorSage Weil <sage@redhat.com>
Sat, 11 Mar 2017 19:30:53 +0000 (14:30 -0500)
committerSage Weil <sage@redhat.com>
Tue, 21 Mar 2017 18:56:28 +0000 (13:56 -0500)
This ensures that we don't trim an onode from the cache while it has a
txc that is still in flight.  Which in turn ensures that if we try to read
the object, we will have any writing buffers available.

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

index c276e5cc65f1529d90cef35e0f3d1639514025b2..9357510557e5e5aae0d801c1cc41a3bdbba253b8 100644 (file)
@@ -7443,7 +7443,6 @@ void BlueStore::_txc_applied_kv(TransContext *txc)
        o->flush_cond.notify_all();
       }
     }
-    ls->clear();  // clear out refs
   }
 }