Last operaton should be cancelled first.
Signed-off-by: Wenchao Xia <[email protected]>
---
blockdev.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/blockdev.c b/blockdev.c
index 75416fb..a24d10e 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -954,7 +954,7 @@ void qmp_transaction(BlockdevActionList *dev_list, Error
**errp)
dev_entry = dev_entry->next;
states = g_malloc0(sizeof(BlkTransactionStates));
- QSIMPLEQ_INSERT_TAIL(&snap_bdrv_states, states, entry);
+ QSIMPLEQ_INSERT_HEAD(&snap_bdrv_states, states, entry);
states->action = dev_info;
switch (dev_info->kind) {
--
1.7.1