qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Emanuele Giuseppe Esposito
Subject: [RFC PATCH 6/6] block/io.c: enable assert_bdrv_graph_writable
Date: Mon, 13 Dec 2021 05:40:14 -0500

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
---
 block/io.c | 1 +
 1 file changed, 1 insertion(+)

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());
 }
 
-- 
2.31.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]