mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
rbd-mirror: avoid potential deadlock
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
parent
c49c8bdf17
commit
46bf727d43
@ -166,8 +166,6 @@ void ImageSync<I>::send_copy_image() {
|
||||
return;
|
||||
}
|
||||
|
||||
update_progress("COPY_IMAGE");
|
||||
|
||||
CephContext *cct = m_local_image_ctx->cct;
|
||||
ldout(cct, 20) << dendl;
|
||||
|
||||
@ -179,6 +177,8 @@ void ImageSync<I>::send_copy_image() {
|
||||
ctx, m_progress_ctx);
|
||||
m_lock.Unlock();
|
||||
|
||||
update_progress("COPY_IMAGE");
|
||||
|
||||
m_image_copy_request->send();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user