[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [PATCH v2 3/5] block: Introduce and make use of blk_ne
From: |
Max Reitz |
Subject: |
Re: [Qemu-stable] [PATCH v2 3/5] block: Introduce and make use of blk_new_with_root |
Date: |
Wed, 28 Sep 2016 19:21:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
On 27.09.2016 08:37, Fam Zheng wrote:
> The idiom of "blk_new() + blk_insert_bs()" is common. Use a new
> BB interface that does both things to make the coming transition that
> adds AioContext to BB easier.
Indeed. It was called blk_new_with_bs() before and I dropped it. :-)
(The difference and the reason why I dropped it was that
blk_new_with_bs() created the BDS, too.)
((And as a side note, this pattern does not come from me dropping
blk_new_with_bs(). As far as I remember, I replaced most places where it
was used by blk_new_open().))
> The added blk_new_with_ctx doesn't handle the passed ctx and is purely
> here to avoid a small code churn.
Maybe add a "yet" in there, i.e. "does not handle the passed ctx yet"?
>
> Signed-off-by: Fam Zheng <address@hidden>
> ---
> block/backup.c | 3 +--
> block/block-backend.c | 24 ++++++++++++++++++------
> block/commit.c | 12 ++++--------
> block/mirror.c | 3 +--
> blockjob.c | 3 +--
> hmp.c | 3 +--
> hw/core/qdev-properties-system.c | 3 +--
> include/sysemu/block-backend.h | 1 +
> nbd/server.c | 3 +--
> tests/test-blockjob.c | 3 +--
> 10 files changed, 30 insertions(+), 28 deletions(-)
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature
- [Qemu-stable] [PATCH v2 0/5] block: keep AioContext pointer in BlockBackend, Fam Zheng, 2016/09/27
- [Qemu-stable] [PATCH v2 1/5] blockdev-mirror: Sanity check before moving target_bs AioContext, Fam Zheng, 2016/09/27
- [Qemu-stable] [PATCH v2 2/5] blockdev: Move BDS AioContext before inserting to BB, Fam Zheng, 2016/09/27
- [Qemu-stable] [PATCH v2 4/5] migration: Set correct AioContext to BlockBackend, Fam Zheng, 2016/09/27
- [Qemu-stable] [PATCH v2 3/5] block: Introduce and make use of blk_new_with_root, Fam Zheng, 2016/09/27
- Re: [Qemu-stable] [PATCH v2 3/5] block: Introduce and make use of blk_new_with_root,
Max Reitz <=
- [Qemu-stable] [PATCH v2 5/5] block: keep AioContext pointer in BlockBackend, Fam Zheng, 2016/09/27