Received: from eggs.gnu.org ([2001:4830:134:3::10]:34617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQcC9-0000vK-1i for qemu-devel@nongnu.org; Mon, 30 Sep 2013 08:03:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQcC3-0005o3-3H for qemu-devel@nongnu.org; Mon, 30 Sep 2013 08:03:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQcC2-0005no-S8 for qemu-devel@nongnu.org; Mon, 30 Sep 2013 08:03:15 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8UC3ETe014563 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 30 Sep 2013 08:03:14 -0400 From: Fam Zheng Date: Mon, 30 Sep 2013 20:02:54 +0800 Message-Id: <1380542578-2387-4-git-send-email-famz@redhat.com> In-Reply-To: <1380542578-2387-1-git-send-email-famz@redhat.com> References: <1380542578-2387-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v4 3/7] mirror: don't close target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, jcody@redhat.com, famz@redhat.com, stefanha@redhat.com Let reference count manage target and don't call bdrv_close here. Signed-off-by: Fam Zheng --- block/mirror.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/mirror.c b/block/mirror.c index fdc7fa8..af6851f 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -479,7 +479,6 @@ immediate_exit: } bdrv_swap(s->target, s->common.bs); } - bdrv_close(s->target); bdrv_unref(s->target); block_job_completed(&s->common, ret); } -- 1.8.3.1