[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/1] block-backend: simplify blk_get_aio_context
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH 1/1] block-backend: simplify blk_get_aio_context |
Date: |
Mon, 9 Apr 2018 12:27:01 +0200 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
Am 27.03.2018 um 15:08 hat Daniel Henrique Barboza geschrieben:
> blk_get_aio_context verifies if BlockDriverState bs is not NULL,
> return bdrv_get_aio_context(bs) if true or qemu_get_aio_context()
> otherwise. However, bdrv_get_aio_context from block.c already does
> this verification itself, also returning qemu_get_aio_context()
> if bs is NULL:
>
> AioContext *bdrv_get_aio_context(BlockDriverState *bs)
> {
> return bs ? bs->aio_context : qemu_get_aio_context();
> }
>
> This patch simplifies blk_get_aio_context to simply call
> bdrv_get_aio_context instead of replicating the same logic.
>
> Signed-off-by: Daniel Henrique Barboza <address@hidden>
Thanks, applied to the block-next branch.
Kevin