diff options
author | Vladimir Sementsov-Ogievskiy | 2021-04-28 17:17:36 +0200 |
---|---|---|
committer | Kevin Wolf | 2021-04-30 12:27:47 +0200 |
commit | 8cad15b1561ee6a1dd473d3f03c982b4dde574a3 (patch) | |
tree | 1b3316e1f1b049f9b0783b5b7c60ef2a303e348b /MAINTAINERS | |
parent | block: make bdrv_reopen_{prepare,commit,abort} private (diff) | |
download | qemu-8cad15b1561ee6a1dd473d3f03c982b4dde574a3.tar.gz qemu-8cad15b1561ee6a1dd473d3f03c982b4dde574a3.tar.xz qemu-8cad15b1561ee6a1dd473d3f03c982b4dde574a3.zip |
util: add transactions.c
Add simple transaction API to use in further update of block graph
operations.
Supposed usage is:
- "prepare" is main function of the action and it should make the main
effect of the action to be visible for the following actions, keeping
possibility of roll-back, saving necessary things in action state,
which is prepended to the action list (to do that, prepare func
should call tran_add()). So, driver struct doesn't include "prepare"
field, as it is supposed to be called directly.
- commit/rollback is supposed to be called for the list of action
states, to commit/rollback all the actions in reverse order
- When possible "commit" should not make visible effect for other
actions, which make possible transparent logical interaction between
actions.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20210428151804.439460-9-vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'MAINTAINERS')
-rw-r--r-- | MAINTAINERS | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 36055f14c5..4c05ff8bba 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2532,6 +2532,12 @@ M: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> S: Maintained F: scripts/simplebench/ +Transactions helper +M: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> +S: Maintained +F: include/qemu/transactions.h +F: util/transactions.c + QAPI M: Markus Armbruster <armbru@redhat.com> M: Michael Roth <michael.roth@amd.com> |