block: Use CAF in bdrv_co_rw_vmstate()
commitc4db2e25df0e4a91bd8a8044756fe3c712b11768
authorMax Reitz <mreitz@redhat.com>
Wed, 12 Jun 2019 16:17:06 +0000 (12 18:17 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 7 Sep 2020 10:31:31 +0000 (7 12:31 +0200)
treeb41f9830e675f7f5c4ccca67d499305ee795e886
parent52f72d6fb62d83eb23f9ff45aad2d9a95c7f8f63
block: Use CAF in bdrv_co_rw_vmstate()

If a node whose driver does not provide VM state functions has a
metadata child, the VM state should probably go there; if it is a
filter, the VM state should probably go there.  It follows that we
should generally go down to the primary child.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
block/io.c