rbd-mirror: avoid potential deadlock

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
Mykola Golub 2016-05-04 15:25:04 +03:00
parent c49c8bdf17
commit 46bf727d43

View File

@ -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();
}