Received: from eggs.gnu.org ([2001:4830:134:3::10]:57827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBfK9-000364-BI for qemu-devel@nongnu.org; Tue, 29 Nov 2016 05:07:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBfK8-0004e1-HN for qemu-devel@nongnu.org; Tue, 29 Nov 2016 05:07:41 -0500 From: Alberto Garcia In-Reply-To: <97691705-aada-6704-f423-8db6387ebf78@redhat.com> References: <1479817444-6880-1-git-send-email-kwolf@redhat.com> <1479817444-6880-6-git-send-email-kwolf@redhat.com> <97691705-aada-6704-f423-8db6387ebf78@redhat.com> Date: Tue, 29 Nov 2016 11:06:51 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 5/9] quorum: Inline quorum_aio_cb() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Kevin Wolf , qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, mreitz@redhat.com On Tue 29 Nov 2016 10:39:12 AM CET, Paolo Bonzini wrote: > On 22/11/2016 13:24, Kevin Wolf wrote: >> + >> + assert(rewrite == !!acb->rewrite_count); > > I think this might actually trigger if none of the rewrite coroutines > yields. I think you're right. Good catch, Paolo. Actually in the new code 'rewrite' doesn't have any purpose; it was previously needed to decide whether to call quorum_aio_finalize() at the end of quorum_aio_cb(), but this is not necessary now. Berto