cryptospore / rpms / qemu-kvm

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