diff mbox

[v2,2/2] mirror: fix misleading comments

Message ID 1466672241-22485-3-git-send-email-xiecl.fnst@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Changlong Xie June 23, 2016, 8:57 a.m. UTC
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>
---
 block/mirror.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jeff Cody June 29, 2016, 2:57 a.m. UTC | #1
On Thu, Jun 23, 2016 at 04:57:21PM +0800, Changlong Xie wrote:
> 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: Jeff Cody <jcody@redhat.com>
> ---
>  block/mirror.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/block/mirror.c b/block/mirror.c
> index a04ed9c..4420a15 100644
> --- a/block/mirror.c
> +++ b/block/mirror.c
> @@ -769,7 +769,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;
>  
> -- 
> 1.9.3
> 
> 
>
diff mbox

Patch

diff --git a/block/mirror.c b/block/mirror.c
index a04ed9c..4420a15 100644
--- a/block/mirror.c
+++ b/block/mirror.c
@@ -769,7 +769,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;