Received: from eggs.gnu.org ([2001:4830:134:3::10]:48601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBPfG-00053j-23 for qemu-devel@nongnu.org; Tue, 22 Dec 2015 11:19:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBPfF-0007JF-5H for qemu-devel@nongnu.org; Tue, 22 Dec 2015 11:19:53 -0500 From: Alberto Garcia In-Reply-To: <567855AA.8090606@redhat.com> References: <567206C0.6010403@redhat.com> <567855AA.8090606@redhat.com> Date: Tue, 22 Dec 2015 17:19:43 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [Qemu-block] Jobs 2.0 QAPI [RFC] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , Qemu-block Cc: Kevin Wolf , qemu-devel , Markus Armbruster On Mon 21 Dec 2015 08:40:26 PM CET, John Snow wrote: > However, better flexibility also plays a part. Say we have two devices: > > [drive0]: [X] --> [Y] --> [Z] > [drive1]: [A] --> [B] > > In theory, we should be able to commit Z into Y into X while we > simultaneously perform a backup from X to A. We definitely can't do that > now. > > There may be some better use cases -- backups, fleecing and other > read-only operations in particular have a high likelihood of being able > to run concurrently with other operations. > > > We definitely *can* just extend the old API to allow for these kinds of > things, but since it represents a new paradigm of job manipulation, it's > easier to just extend the block jobs api into a new "jobs" API and allow > the system to expand to other subsystems. That sounds good to me. Since I'm trying to achieve something similar with the block-stream operations (two or more ops in parallel) I'll try to follow this new API closely. Thanks, Berto