]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/ObjectCacher: wake up dirty stat waiters after removing buffers 11593/head
authorYan, Zheng <zyan@redhat.com>
Fri, 21 Oct 2016 13:24:15 +0000 (21:24 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 21 Oct 2016 13:36:53 +0000 (21:36 +0800)
Fixes: http://tracker.ceph.com/issues/17275
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/osdc/ObjectCacher.cc

index bdaf0f806a9aa46190bca571450dfba4af8b2afe..75bf99e9c24b6a1a4e35e3ce0d119a6c6018723a 100644 (file)
@@ -2592,5 +2592,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();
 }