diff mbox series

[RFC,6/6] block/io.c: enable assert_bdrv_graph_writable

Message ID 20211213104014.69858-7-eesposit@redhat.com (mailing list archive)
State New, archived
Headers show
Series Removal of Aiocontext lock and usage of subtree drains in aborted transactions | expand

Commit Message

Emanuele Giuseppe Esposito Dec. 13, 2021, 10:40 a.m. UTC
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
---
 block/io.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/block/io.c b/block/io.c
index a031691860..c2f1a494c4 100644
--- a/block/io.c
+++ b/block/io.c
@@ -759,6 +759,7 @@  void assert_bdrv_graph_writable(BlockDriverState *bs)
      * Once the necessary drains are added,
      * assert also for qatomic_read(&bs->quiesce_counter) > 0
      */
+    assert(qatomic_read(&bs->quiesce_counter) > 0);
     assert(qemu_in_main_thread());
 }