From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adYki-0006yV-Ae for qemu-devel@nongnu.org; Wed, 09 Mar 2016 02:41:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adYkh-0002Xq-F4 for qemu-devel@nongnu.org; Wed, 09 Mar 2016 02:41:52 -0500 Sender: Paolo Bonzini References: <1455645388-32401-1-git-send-email-pbonzini@redhat.com> <1455645388-32401-6-git-send-email-pbonzini@redhat.com> <20160309031950.GD17947@ad.usersys.redhat.com> From: Paolo Bonzini Message-ID: <56DFD3B7.1020809@redhat.com> Date: Wed, 9 Mar 2016 08:41:43 +0100 MIME-Version: 1.0 In-Reply-To: <20160309031950.GD17947@ad.usersys.redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 05/16] mirror: use bottom half to re-enter coroutine List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, stefanha@redhat.com On 09/03/2016 04:19, Fam Zheng wrote: >> > + /* The I/O operation is not finished until the callback returns. >> > + * If we call qemu_coroutine_enter here, there is the possibility >> > + * of a deadlock when the coroutine calls bdrv_drained_begin. >> > + */ >> > + op->co_enter_bh = qemu_bh_new(mirror_bh_cb, op); > Shouldn't this be aio_bh_new()? Yes, of course. Paolo