Skip to content

Commit

Permalink
osdc/ObjectCacher: wake up dirty stat waiters after removing buffers
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/17275
Signed-off-by: Yan, Zheng <zyan@redhat.com>
  • Loading branch information
ukernel committed Oct 21, 2016
1 parent 29119aa commit a684dc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osdc/ObjectCacher.cc
Expand Up @@ -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();
}

0 comments on commit a684dc5

Please sign in to comment.