Received: from eggs.gnu.org ([2001:4830:134:3::10]:39931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtaYt-0005Y5-Cg for qemu-devel@nongnu.org; Tue, 03 Nov 2015 07:19:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtaYs-0000U0-GH for qemu-devel@nongnu.org; Tue, 03 Nov 2015 07:19:39 -0500 Date: Tue, 3 Nov 2015 13:19:31 +0100 From: Kevin Wolf Message-ID: <20151103121931.GB11009@noname.redhat.com> References: <1446084866-12451-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1446084866-12451-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 0/9] block: Fixes for bdrv_drain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Stefan Hajnoczi , qemu-block@nongnu.org, Peter Lieven , qemu-devel@nongnu.org, Ronnie Sahlberg , Paolo Bonzini Am 29.10.2015 um 03:14 hat Fam Zheng geschrieben: > v2: Add Kevin's reviewed-by in patches 1, 2, 5-7, 9. > Address Kevin's reviewing comments which are: > - Explicit "ret = 0" before out label in patch 3. > - Add missing qemu_aio_unref() in patch 4. > - Recurse into all children in bdrv_drain in patch 8. > > Previously bdrv_drain and bdrv_drain_all don't handle ioctl, flush and discard > requests (which are fundamentally the same as read and write requests that > change disk state). Forgetting such requests leaves us in risk of violating > the invariant that bdrv_drain() callers rely on - all asynchronous requests > must have completed after bdrv_drain returns. > > Enrich the tracked request types, and add tracked_request_begin/end pairs to > all three code paths. As a prerequisite, ioctl code is moved into coroutine > too. > > The last two patches take care of QED's "need check" timer, so that after > bdrv_drain returns, the driver is in a consistent state. Reviewed-by: Kevin Wolf