mirror of
https://github.com/ceph/ceph
synced 2025-02-19 17:08:05 +00:00
Merge pull request #9025 from trociny/fixup-rbd-mirror-status
rbd-mirror: avoid potential deadlock Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
221ea5e2fe
@ -166,8 +166,6 @@ void ImageSync<I>::send_copy_image() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
update_progress("COPY_IMAGE");
|
|
||||||
|
|
||||||
CephContext *cct = m_local_image_ctx->cct;
|
CephContext *cct = m_local_image_ctx->cct;
|
||||||
ldout(cct, 20) << dendl;
|
ldout(cct, 20) << dendl;
|
||||||
|
|
||||||
@ -179,6 +177,8 @@ void ImageSync<I>::send_copy_image() {
|
|||||||
ctx, m_progress_ctx);
|
ctx, m_progress_ctx);
|
||||||
m_lock.Unlock();
|
m_lock.Unlock();
|
||||||
|
|
||||||
|
update_progress("COPY_IMAGE");
|
||||||
|
|
||||||
m_image_copy_request->send();
|
m_image_copy_request->send();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user