From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adZtt-00051L-0O for qemu-devel@nongnu.org; Wed, 09 Mar 2016 03:55:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adZts-00049V-6J for qemu-devel@nongnu.org; Wed, 09 Mar 2016 03:55:24 -0500 Sender: Paolo Bonzini References: <1455645388-32401-1-git-send-email-pbonzini@redhat.com> <1455645388-32401-14-git-send-email-pbonzini@redhat.com> <20160309083049.GI17947@ad.usersys.redhat.com> From: Paolo Bonzini Message-ID: <56DFE4F1.1040708@redhat.com> Date: Wed, 9 Mar 2016 09:55:13 +0100 MIME-Version: 1.0 In-Reply-To: <20160309083049.GI17947@ad.usersys.redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 13/16] block: only call aio_poll from iothread 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 09:30, Fam Zheng wrote: > > - aio_poll(bdrv_get_aio_context(bs), true); > > + if (aio_context_in_iothread(ctx)) { > > + /* This case should not occur at all, except for the > > + * main thread. > > + */ > > Maybe assert ctx == qemu_get_aio_context()? Sure. Paolo