From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2EjJ-0006yg-T5 for qemu-devel@nongnu.org; Thu, 25 Jul 2013 02:08:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2EjH-0008AT-K3 for qemu-devel@nongnu.org; Thu, 25 Jul 2013 02:08:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2EjH-0008AH-CJ for qemu-devel@nongnu.org; Thu, 25 Jul 2013 02:08:47 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r6P68jnv030760 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 25 Jul 2013 02:08:46 -0400 Date: Thu, 25 Jul 2013 14:08:42 +0800 From: Fam Zheng Message-ID: <20130725060842.GA9893@T430s.redhat.com> References: <1374054136-28741-1-git-send-email-famz@redhat.com> <1374054136-28741-8-git-send-email-famz@redhat.com> <20130723095246.GF20256@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130723095246.GF20256@stefanha-thinkpad.redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 07/11] block: hold hard reference for backup/mirror target Reply-To: famz@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: kwolf@redhat.com, hbrock@redhat.com, qemu-devel@nongnu.org, rjones@redhat.com, imain@redhat.com, pbonzini@redhat.com On Tue, 07/23 11:52, Stefan Hajnoczi wrote: > On Wed, Jul 17, 2013 at 05:42:12PM +0800, Fam Zheng wrote: > > Signed-off-by: Fam Zheng > > --- > > block/backup.c | 3 ++- > > block/mirror.c | 4 ++-- > > 2 files changed, 4 insertions(+), 3 deletions(-) > > Should we update the blockjob.c in_use code instead of adding > refcounting to specific block jobs? This ought to be handled > generically for all block jobs. Target is not common in block jobs (e.g. doesn't apply to block-commit), so it seems only specific block job knows about this. -- Fam