diff --git a/src/librbd/JournalReplay.cc b/src/librbd/JournalReplay.cc index 6f54eb15789..8c162311d9a 100644 --- a/src/librbd/JournalReplay.cc +++ b/src/librbd/JournalReplay.cc @@ -158,7 +158,8 @@ void JournalReplay::handle_aio_completion(AioCompletion *aio_comp) { } m_aio_completions.erase(it); - m_cond.Signal(); + if (m_aio_completions.empty()) + m_cond.Signal(); } void JournalReplay::aio_completion_callback(completion_t cb, void *arg) {