Skip to content

Commit

Permalink
Merge pull request #11593 from ukernel/wip-17275
Browse files Browse the repository at this point in the history
osdc/ObjectCacher: wake up dirty stat waiters after removing buffers

Reviewed-by: John Spray <john.spray@redhat.com>
  • Loading branch information
John Spray committed Oct 25, 2016
2 parents c755d05 + a684dc5 commit 1a67328
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 1a67328

Please sign in to comment.