From 14e9559f4624e704a53d0789124b6f9ea9ebb5ca Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Sat, 8 Apr 2017 11:34:45 +0800 Subject: block: Make bdrv_parent_drained_begin/end public Signed-off-by: Fam Zheng Reviewed-by: Stefan Hajnoczi Acked-by: Stefan Hajnoczi Reviewed-by: Kevin Wolf --- include/block/block.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include') diff --git a/include/block/block.h b/include/block/block.h index 3e09222f5f..488a07ed67 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -572,6 +572,22 @@ int bdrv_probe_geometry(BlockDriverState *bs, HDGeometry *geo); void bdrv_io_plug(BlockDriverState *bs); void bdrv_io_unplug(BlockDriverState *bs); +/** + * bdrv_parent_drained_begin: + * + * Begin a quiesced section of all users of @bs. This is part of + * bdrv_drained_begin. + */ +void bdrv_parent_drained_begin(BlockDriverState *bs); + +/** + * bdrv_parent_drained_end: + * + * End a quiesced section of all users of @bs. This is part of + * bdrv_drained_end. + */ +void bdrv_parent_drained_end(BlockDriverState *bs); + /** * bdrv_drained_begin: * -- cgit v1.2.3