Merge pull request #11593 from ukernel/wip-17275

osdc/ObjectCacher: wake up dirty stat waiters after removing buffers

Reviewed-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2016-10-25 12:16:05 +01:00 committed by GitHub
commit 1a67328b35

View 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();
}