On Wed 03 Jun 2015 09:43:52 PM CEST, Max Reitz <mre...@redhat.com> 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 <mre...@redhat.com>
> Reviewed-by: Eric Blake <ebl...@redhat.com>

Reviewed-by: Alberto Garcia <be...@igalia.com>

Berto

Reply via email to