-
Kevin Wolf authored
bdrv_reopen() and friends use subtree drains as a lazy way of covering all the nodes they touch. Turns out that this lazy way is a lot more complicated than just draining the nodes individually, even not accounting for the additional complexity in the drain mechanism itself. Simplify the code by switching to draining the individual nodes that are already managed in the BlockReopenQueue anyway. Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Message-Id: <20221118174110.55183-8-kwolf@redhat.com>
Reviewed-by:
Hanna Reitz <hreitz@redhat.com>
Reviewed-by:
Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by:
Kevin Wolf <kwolf@redhat.com>Kevin Wolf authoredbdrv_reopen() and friends use subtree drains as a lazy way of covering all the nodes they touch. Turns out that this lazy way is a lot more complicated than just draining the nodes individually, even not accounting for the additional complexity in the drain mechanism itself. Simplify the code by switching to draining the individual nodes that are already managed in the BlockReopenQueue anyway. Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Message-Id: <20221118174110.55183-8-kwolf@redhat.com>
Reviewed-by:
Hanna Reitz <hreitz@redhat.com>
Reviewed-by:
Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Loading