On Fri, Dec 13, 2013 at 03:35:15PM +0800, Fam Zheng wrote:
> @@ -1476,6 +1486,9 @@ void bdrv_close(BlockDriverState *bs)
>
> if (bs->drv) {
> if (bs->backing_hd) {
> +assert(error_is_set(&bs->backing_blocker));
> +bdrv_op_unblock_all(bs->backing_hd, bs->backi
This makes use of op_blocker and blocks all the operations except for
commit target, on each BlockDriverState->backing_hd.
Signed-off-by: Fam Zheng
---
block.c | 13 +
include/block/block_int.h | 3 +++
2 files changed, 16 insertions(+)
diff --git a/block.c b/bloc