From: Sage Weil Date: Sat, 11 Mar 2017 19:30:53 +0000 (-0500) Subject: os/bluestore: keep onode refs for lifetime of obc X-Git-Tag: v12.0.1~12^2~29 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9b28d615e77f002a38ac84458bd7fb1acac4d86d;p=ceph.git os/bluestore: keep onode refs for lifetime of obc 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 --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index c276e5cc65f1..9357510557e5 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -7443,7 +7443,6 @@ void BlueStore::_txc_applied_kv(TransContext *txc) o->flush_cond.notify_all(); } } - ls->clear(); // clear out refs } }