diff options
author | Fam Zheng | 2017-04-08 05:34:45 +0200 |
---|---|---|
committer | Fam Zheng | 2017-04-11 14:07:15 +0200 |
commit | 14e9559f4624e704a53d0789124b6f9ea9ebb5ca (patch) | |
tree | 11441385cdce1ec3129568cff939858408daf8a6 /include | |
parent | Merge remote-tracking branch 'remotes/kraxel/tags/pull-fixes-20170411-1' into... (diff) | |
download | qemu-14e9559f4624e704a53d0789124b6f9ea9ebb5ca.tar.gz qemu-14e9559f4624e704a53d0789124b6f9ea9ebb5ca.tar.xz qemu-14e9559f4624e704a53d0789124b6f9ea9ebb5ca.zip |
block: Make bdrv_parent_drained_begin/end public
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/block/block.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ -573,6 +573,22 @@ 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: * * Begin a quiesced section for exclusive access to the BDS, by disabling |