From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvezB-00024a-Mv for qemu-devel@nongnu.org; Fri, 22 May 2015 00:55:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvezA-0004cO-Sw for qemu-devel@nongnu.org; Fri, 22 May 2015 00:55:05 -0400 Date: Fri, 22 May 2015 12:54:50 +0800 From: Fam Zheng Message-ID: <20150522045450.GB1829@ad.nay.redhat.com> References: <1432190583-10518-1-git-send-email-famz@redhat.com> <1432190583-10518-2-git-send-email-famz@redhat.com> <555D83D8.4000302@cn.fujitsu.com> <20150521073202.GA1829@ad.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150521073202.GA1829@ad.nay.redhat.com> Subject: Re: [Qemu-devel] [PATCH v6 01/13] block: Add op blocker type "device IO" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wen Congyang Cc: Kevin Wolf , qemu-block@nongnu.org, qemu-devel@nongnu.org, jcody@redhat.com, armbru@redhat.com, mreitz@redhat.com, Stefan Hajnoczi , amit.shah@redhat.com, pbonzini@redhat.com On Thu, 05/21 15:32, Fam Zheng wrote: > On Thu, 05/21 15:06, Wen Congyang wrote: > > On 05/21/2015 02:42 PM, Fam Zheng wrote: > > > It blocks device IO. > > > > > > All bdrv_op_block_all/blk_op_block_all callers are taken care of: > > > > > > - virtio_blk_data_plane_create > > > - virtio_scsi_hotplug > > > > > > Device creation, unblock it. > > > > > > - bdrv_set_backing_hd > > > > > > Backing hd is not used by device, so blocking is OK. > > > > > > - backup_start > > > > > > Blocking target when backup is running, unblock it. > > > > Do you forget it? > > Oh I think the commit log is wrong: the target image is only written to by > block job, there cannot be a device on it, so it it's similar to > bdrv_set_backing_hd. Correction: if it's blockdev-backup, the target could have a device, in that sense it should be unblocked like block_job_create(). I'll fix it. Fam