Received: from eggs.gnu.org ([2001:4830:134:3::10]:47692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axbxC-0006pQ-2f for qemu-devel@nongnu.org; Tue, 03 May 2016 11:09:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axbx0-0003in-Ei for qemu-devel@nongnu.org; Tue, 03 May 2016 11:09:32 -0400 From: Alberto Garcia In-Reply-To: <20160503134847.GH3917@noname.str.redhat.com> References: <5720BFDB.60600@redhat.com> <20160429151826.GM4350@noname.redhat.com> <20160503132324.GE3917@noname.str.redhat.com> <20160503134847.GH3917@noname.str.redhat.com> Date: Tue, 03 May 2016 17:09:05 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v9 07/11] block: Add QMP support for streaming to an intermediate layer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Max Reitz , qemu-devel@nongnu.org, qemu-block@nongnu.org, Eric Blake , Stefan Hajnoczi On Tue 03 May 2016 03:48:47 PM CEST, Kevin Wolf wrote: > The solution to that should be simply changing the order of things: > > 1. bdrv_drained_begin() > 2. bdrv_reopen_queue() > 3. bdrv_reopen_multiple() > * Instead of bdrv_drain_all(), assert that no requests are pending No requests are pending in any member of the bs_queue? I don't have the time to debug it today, but this part doesn't seem to be working. > * We don't run requests, so we can't complete a block job and > manipulate the graph any more > 4. then bdrv_drained_end() Berto