]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/ObjectCacher: wake up dirty stat waiters after removing buffers 11858/head
authorYan, Zheng <zyan@redhat.com>
Fri, 21 Oct 2016 13:24:15 +0000 (21:24 +0800)
committerLoic Dachary <ldachary@redhat.com>
Wed, 9 Nov 2016 12:59:52 +0000 (13:59 +0100)
Fixes: http://tracker.ceph.com/issues/17275
Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit a684dc50873ca968131a68db65f1a1df36767d44)

src/osdc/ObjectCacher.cc

index 2a1e76e36ca01af97dfb39eb918942cb8b50cbf4..0f15e4f3173b5c93a62464828f1b909550c4ab38 100644 (file)
@@ -2524,5 +2524,7 @@ void ObjectCacher::bh_remove(Object *ob, BufferHead *bh)
     dirty_or_tx_bh.erase(bh);
   }
   bh_stat_sub(bh);
+  if (get_stat_dirty_waiting() > 0)
+    stat_cond.Signal();
 }