]> git.proxmox.com Git - mirror_qemu.git/blobdiff - blockdev.c
bsd-user: spelling fixes: necesary, agrument, undocummented
[mirror_qemu.git] / blockdev.c
index f04faf6373e77e25a4b5d7164f0291b61b47fac0..5bc921236cc094e27eedef1bf45d4d6fdee0219e 100644 (file)
@@ -1610,7 +1610,12 @@ static void external_snapshot_abort(void *opaque)
                 aio_context_acquire(aio_context);
             }
 
+            bdrv_drained_begin(state->new_bs);
+            bdrv_graph_wrlock(state->old_bs);
             bdrv_replace_node(state->new_bs, state->old_bs, &error_abort);
+            bdrv_graph_wrunlock();
+            bdrv_drained_end(state->new_bs);
+
             bdrv_unref(state->old_bs); /* bdrv_replace_node() ref'ed old_bs */
 
             aio_context_release(aio_context);