From 377cc15bf1994a176162a5f705ff32a38aa55e2c Mon Sep 17 00:00:00 2001 From: Emanuele Giuseppe Esposito Date: Thu, 3 Mar 2022 10:16:08 -0500 Subject: block/copy-before-write.h: global state API + assertions copy-before-write functions always run under BQL. Signed-off-by: Emanuele Giuseppe Esposito Message-Id: <20220303151616.325444-24-eesposit@redhat.com> Signed-off-by: Kevin Wolf --- block/copy-before-write.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'block/copy-before-write.h') diff --git a/block/copy-before-write.h b/block/copy-before-write.h index 51847e711a..6e72bb25e9 100644 --- a/block/copy-before-write.h +++ b/block/copy-before-write.h @@ -29,6 +29,13 @@ #include "block/block_int.h" #include "block/block-copy.h" +/* + * Global state (GS) API. These functions run under the BQL. + * + * See include/block/block-global-state.h for more information about + * the GS API. + */ + BlockDriverState *bdrv_cbw_append(BlockDriverState *source, BlockDriverState *target, const char *filter_node_name, -- cgit v1.2.3