mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
librbd/JournalReplay: Only Send signal when aio completions queue empty.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
This commit is contained in:
parent
ce944e4cb1
commit
fd684ca15d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user