]> Git Repo - qemu.git/commit
blockdev: abort transactions in reverse order
authorJohn Snow <[email protected]>
Fri, 11 Jan 2019 17:59:16 +0000 (11:59 -0600)
committerEric Blake <[email protected]>
Mon, 14 Jan 2019 16:08:47 +0000 (10:08 -0600)
commitf4de0f8c40b70c4c9308b4670e0a6ad9faed0262
tree5cd6f77de676bcce66818feaaf95c11376ddaa3e
parent7260438b7056469610ee166f7abe9ff8a26b8b16
blockdev: abort transactions in reverse order

Presently, we abort transactions in the same order they were processed in.
Bitmap commands, though, attempt to restore backup data structures on abort.

That's not valid, they need to be aborted in reverse chronological order.

Replace the QSIMPLEQ data structure with a QTAILQ one, so we can iterate
in reverse for the abort phase of the transaction.

Signed-off-by: John Snow <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-Id: <20181221093529[email protected]>
[eblake: rebase]
Signed-off-by: Eric Blake <[email protected]>
blockdev.c
This page took 0.025857 seconds and 4 git commands to generate.