]> git.proxmox.com Git - mirror_qemu.git/commit
block: Avoid bs->blk in bdrv_next()
authorKevin Wolf <kwolf@redhat.com>
Tue, 22 Mar 2016 17:58:50 +0000 (18:58 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 May 2016 14:45:31 +0000 (16:45 +0200)
commit7c8eece45b10fc9b716850345118ed6fa8d17887
treea800da22963a8ff1d036a97a3281ddd555d07c91
parentdde33812a83b9c55b180a85411bfc4d6c39e8b11
block: Avoid bs->blk in bdrv_next()

We need to introduce a separate BdrvNextIterator struct that can keep
more state than just the current BDS in order to avoid using the bs->blk
pointer.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c
block/block-backend.c
block/io.c
block/snapshot.c
blockdev.c
include/block/block.h
include/sysemu/block-backend.h
migration/block.c
monitor.c
qmp.c