qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 04/36] block: bdrv_append(): don't consume reference


From: Kevin Wolf
Subject: Re: [PATCH v3 04/36] block: bdrv_append(): don't consume reference
Date: Fri, 23 Apr 2021 16:11:12 +0200

Am 17.03.2021 um 15:34 hat Vladimir Sementsov-Ogievskiy geschrieben:
> We have too much comments for this feature. It seems better just don't
> do it. Most of real users (tests don't count) have to create additional
> reference.
> 
> Drop also comment in external_snapshot_prepare:
>  - bdrv_append doesn't "remove" old bs in common sense, it sounds
>    strange
>  - the fact that bdrv_append can fail is obvious from the context
>  - the fact that we must rollback all changes in transaction abort is
>    known (it's the direct role of abort)
> 
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>

test_append_greedy_filter() is new since v2 and needs an additional
bdrv_unref() now, too.

Kevin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]