[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 05/50] block: Fix BB AIOCB AioContext without BD
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 05/50] block: Fix BB AIOCB AioContext without BDS |
Date: |
Tue, 27 Jan 2015 12:12:49 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
On 01/26/2015 09:02 AM, 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 <address@hidden>
> ---
> block/block-backend.c | 17 ++++++++++++++++-
> 1 file changed, 16 insertions(+), 1 deletion(-)
>
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH 00/50] blockdev: BlockBackend and media, Max Reitz, 2015/01/26
- [Qemu-devel] [PATCH 04/50] hw/usb-storage: Check whether BB is inserted, Max Reitz, 2015/01/26
- [Qemu-devel] [PATCH 08/50] block/quorum: Implement bdrv_is_inserted(), Max Reitz, 2015/01/26
- [Qemu-devel] [PATCH 05/50] block: Fix BB AIOCB AioContext without BDS, Max Reitz, 2015/01/26
- Re: [Qemu-devel] [PATCH 05/50] block: Fix BB AIOCB AioContext without BDS,
Eric Blake <=
- [Qemu-devel] [PATCH 01/50] blockdev: Allow creation of BDS trees without BB, Max Reitz, 2015/01/26
- [Qemu-devel] [PATCH 03/50] hw/block/fdc: Implement tray status, Max Reitz, 2015/01/26
- [Qemu-devel] [PATCH 02/50] iotests: Only create BB if necessary, Max Reitz, 2015/01/26
- [Qemu-devel] [PATCH 13/50] block: Add BlockBackendRootState, Max Reitz, 2015/01/26
- [Qemu-devel] [PATCH 14/50] block: Make some BB functions fall back to BBRS, Max Reitz, 2015/01/26
- [Qemu-devel] [PATCH 06/50] block: Add blk_is_available(), Max Reitz, 2015/01/26