Received: from eggs.gnu.org ([2001:4830:134:3::10]:35965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBibu-0006je-Kj for qemu-devel@nongnu.org; Tue, 29 Nov 2016 08:38:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBibo-0001CK-SH for qemu-devel@nongnu.org; Tue, 29 Nov 2016 08:38:14 -0500 Date: Tue, 29 Nov 2016 14:38:00 +0100 From: Kevin Wolf Message-ID: <20161129133800.GB7080@noname.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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Alberto Garcia Cc: Paolo Bonzini , qemu-block@nongnu.org, qemu-devel@nongnu.org, mreitz@redhat.com Am 29.11.2016 um 11:06 hat Alberto Garcia geschrieben: > 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. I'll remove the assertion and make quorum_vote() a void function. Kevin