block: Rewrite bdrv_next()
commit26260580349e0369858f03f46ebaf9e31c2a780f
authorMax Reitz <mreitz@redhat.com>
Wed, 16 Mar 2016 18:54:43 +0000 (16 19:54 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 17 Mar 2016 14:47:56 +0000 (17 15:47 +0100)
tree4ae85d7b2c2a9e07eb5a1b058da9c2aa7308375a
parent981f4f578e6a0dfb2d02384941ea17f7ea1a14ec
block: Rewrite bdrv_next()

Instead of using the bdrv_states list, iterate over all the
BlockDriverStates attached to BlockBackends, and over all the
monitor-owned BDSs afterwards (except for those attached to a BB).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c