diff options
author | John Snow <jsnow@redhat.com> | 2018-09-06 09:02:13 -0400 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2018-09-25 15:31:15 +0200 |
commit | 22dffcbec62ba918db690ed44beba4bd4e970bb9 (patch) | |
tree | e0c3c9838ee2316ce16f5d55de56cd3dc798b923 /accel | |
parent | cf6320df581e6cbde6a95075266859a8f9ba9d55 (diff) | |
download | qemu-22dffcbec62ba918db690ed44beba4bd4e970bb9.zip qemu-22dffcbec62ba918db690ed44beba4bd4e970bb9.tar.gz qemu-22dffcbec62ba918db690ed44beba4bd4e970bb9.tar.bz2 |
block/commit: refactor commit to use job callbacks
Use the component callbacks; prepare, abort, and clean.
NB: prepare is only called when the job has not yet failed;
and abort can be called after prepare.
complete -> prepare -> abort -> clean
complete -> abort -> clean
During refactor, a potential problem with bdrv_drop_intermediate
was identified, the patched behavior is no worse than the pre-patch
behavior, so leave a FIXME for now to be fixed in a future patch.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20180906130225.5118-5-jsnow@redhat.com
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'accel')
0 files changed, 0 insertions, 0 deletions