yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
0a122b
From 6fe6f64923937e725013de1a8e5f7d7b10047787 Mon Sep 17 00:00:00 2001
0a122b
From: Fam Zheng <famz@redhat.com>
0a122b
Date: Fri, 17 Jan 2014 03:07:57 +0100
0a122b
Subject: [PATCH 14/34] mirror: Don't close target
0a122b
0a122b
RH-Author: Fam Zheng <famz@redhat.com>
0a122b
Message-id: <1389928083-8921-13-git-send-email-famz@redhat.com>
0a122b
Patchwork-id: 56774
0a122b
O-Subject: [RHEL-7 qemu-kvm PATCH 12/18] mirror: Don't close target
0a122b
Bugzilla: 1041301
0a122b
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
0a122b
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
0a122b
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
0a122b
Let reference count manage target and don't call bdrv_close here.
0a122b
0a122b
Signed-off-by: Fam Zheng <famz@redhat.com>
0a122b
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
0a122b
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
(cherry picked from commit f95c625ce4cb7863795fcc36502ac58a44fdb2f1)
0a122b
Signed-off-by: Fam Zheng <famz@redhat.com>
0a122b
---
0a122b
 block/mirror.c | 1 -
0a122b
 1 file changed, 1 deletion(-)
0a122b
0a122b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
0a122b
---
0a122b
 block/mirror.c |    1 -
0a122b
 1 files changed, 0 insertions(+), 1 deletions(-)
0a122b
0a122b
diff --git a/block/mirror.c b/block/mirror.c
0a122b
index 8837186..1e3337f 100644
0a122b
--- a/block/mirror.c
0a122b
+++ b/block/mirror.c
0a122b
@@ -479,7 +479,6 @@ immediate_exit:
0a122b
         }
0a122b
         bdrv_swap(s->target, s->common.bs);
0a122b
     }
0a122b
-    bdrv_close(s->target);
0a122b
     bdrv_unref(s->target);
0a122b
     block_job_completed(&s->common, ret);
0a122b
 }
0a122b
-- 
0a122b
1.7.1
0a122b