Received: from eggs.gnu.org ([2001:4830:134:3::10]:49358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0W9n-0004jQ-Ra for qemu-devel@nongnu.org; Thu, 04 Jun 2015 10:30:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0W9k-0003Tn-3f for qemu-devel@nongnu.org; Thu, 04 Jun 2015 10:30:07 -0400 From: Alberto Garcia In-Reply-To: <1433360659-1915-12-git-send-email-mreitz@redhat.com> References: <1433360659-1915-1-git-send-email-mreitz@redhat.com> <1433360659-1915-12-git-send-email-mreitz@redhat.com> Date: Thu, 04 Jun 2015 16:29:53 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v3 11/38] block: Fix BB AIOCB AioContext without BDS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, Stefan Hajnoczi , Markus Armbruster On Wed 03 Jun 2015 09:43:52 PM CEST, Max Reitz wrote: > Fix the BlockBackend's AIOCB AioContext for aborting AIO in case there > is no BDS. If there is no implementation of AIOCBInfo::get_aio_context() > the AioContext is derived from the BDS the AIOCB belongs to. If that BDS > is NULL (because it has been removed from the BB) this will not work. > > This patch makes blk_get_aio_context() fall back to the main loop > context if the BDS pointer is NULL and implements > AIOCBInfo::get_aio_context() (blk_aiocb_get_aio_context()) which invokes > blk_get_aio_context(). > > Signed-off-by: Max Reitz > Reviewed-by: Eric Blake Reviewed-by: Alberto Garcia Berto