]> git.proxmox.com Git - mirror_qemu.git/commit - include/block/block_int.h
block: Add backing_blocker in BlockDriverState
authorFam Zheng <famz@redhat.com>
Fri, 23 May 2014 13:29:47 +0000 (21:29 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 28 May 2014 12:28:46 +0000 (14:28 +0200)
commit826b6ca0b0c00bf27562a85bc073f800dad1259b
tree09e8976f3d060ef25ab1e5c08fdd8f639c6c2156
parent920beae1037dc7d98cd876da8c83b402234c7dba
block: Add backing_blocker in BlockDriverState

This makes use of op_blocker and blocks all the operations except for
commit target, on each BlockDriverState->backing_hd.

The asserts for op_blocker in bdrv_swap are removed because with this
change, the target of block commit has at least the backing blocker of
its child, so the assertion is not true. Callers should do their check.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block.c
block/mirror.c
include/block/block_int.h