Skip to content

Commit

Permalink
mirror: fix misleading comments
Browse files Browse the repository at this point in the history
s/target bs/to_replace/, also we check to_replace bs is not
blocked in qmp_drive_mirror() not here

Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Message-id: 1466672241-22485-3-git-send-email-xiecl.fnst@cn.fujitsu.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
  • Loading branch information
Changlong Xie authored and codyprime committed Jun 29, 2016
1 parent b48100c commit 15d6729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/mirror.c
Expand Up @@ -775,7 +775,7 @@ static void mirror_complete(BlockJob *job, Error **errp)
}
}

/* check the target bs is not blocked and block all operations on it */
/* block all operations on to_replace bs */
if (s->replaces) {
AioContext *replace_aio_context;

Expand Down

0 comments on commit 15d6729

Please sign in to comment.