block: Don't use subtree drains in bdrv_drop_intermediate()
commit631086deefc32690ee56efed1c5b891dec31ae37
authorKevin Wolf <kwolf@redhat.com>
Fri, 18 Nov 2022 17:41:03 +0000 (18 18:41 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 15 Dec 2022 15:07:42 +0000 (15 16:07 +0100)
treeb43912b7f07324d91f71e32e57f99fce324c8fbc
parentd22933acd2f470eeef779e4d444e848f76dcfaf8
block: Don't use subtree drains in bdrv_drop_intermediate()

Instead of using a subtree drain from the top node (which also drains
child nodes of base that we're not even interested in), use a normal
drain for base, which automatically drains all of the parents, too.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20221118174110.55183-9-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c