aboutsummaryrefslogtreecommitdiff
path: root/include/block
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2020-10-28 09:07:34 +0100
committerMax Reitz <mreitz@redhat.com>2020-11-09 15:44:21 +0100
commit009cde17a527993b8bc45da831fe0643229a04ee (patch)
treec56b35157219fb7ad9b35134b2a0c413aee67b89 /include/block
parent3d86af858ec081b2b385b6fd5af09e42ca825a96 (diff)
downloadqemu-009cde17a527993b8bc45da831fe0643229a04ee.zip
qemu-009cde17a527993b8bc45da831fe0643229a04ee.tar.gz
qemu-009cde17a527993b8bc45da831fe0643229a04ee.tar.bz2
block: Move bdrv_drain_all_end_quiesce() to block_int.h
This function is really an internal helper for bdrv_close(). Update its doc comment to make this clear and make the function private. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <160387245480.131299.13430357162209598411.stgit@bahia> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block.h6
-rw-r--r--include/block/block_int.h9
2 files changed, 9 insertions, 6 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 4bfe3b5..c9d7c58 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -782,12 +782,6 @@ void bdrv_drained_end(BlockDriverState *bs);
void bdrv_drained_end_no_poll(BlockDriverState *bs, int *drained_end_counter);
/**
- * End all quiescent sections started by bdrv_drain_all_begin(). This is
- * only needed when deleting a BDS before bdrv_drain_all_end() is called.
- */
-void bdrv_drain_all_end_quiesce(BlockDriverState *bs);
-
-/**
* End a quiescent section started by bdrv_subtree_drained_begin().
*/
void bdrv_subtree_drained_end(BlockDriverState *bs);
diff --git a/include/block/block_int.h b/include/block/block_int.h
index 38cad9d..95d9333 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -1407,4 +1407,13 @@ static inline BlockDriverState *bdrv_primary_bs(BlockDriverState *bs)
return child_bs(bdrv_primary_child(bs));
}
+/**
+ * End all quiescent sections started by bdrv_drain_all_begin(). This is
+ * needed when deleting a BDS before bdrv_drain_all_end() is called.
+ *
+ * NOTE: this is an internal helper for bdrv_close() *only*. No one else
+ * should call it.
+ */
+void bdrv_drain_all_end_quiesce(BlockDriverState *bs);
+
#endif /* BLOCK_INT_H */