diff options
| author | Fam Zheng | 2015-10-23 05:08:11 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2015-10-23 18:18:24 +0200 |
| commit | 1fdd4b7be3655d39c3594bc215eb1df5ce225c7d (patch) | |
| tree | 3bc0dfa56410b2993c17b74df388f5e42c351ef3 /include/exec/user | |
| parent | block: Add "drained begin/end" for transactional external snapshot (diff) | |
| download | qemu-1fdd4b7be3655d39c3594bc215eb1df5ce225c7d.tar.gz qemu-1fdd4b7be3655d39c3594bc215eb1df5ce225c7d.tar.xz qemu-1fdd4b7be3655d39c3594bc215eb1df5ce225c7d.zip | |
block: Add "drained begin/end" for transactional backup
This ensures the atomicity of the transaction by avoiding processing of
external requests such as those from ioeventfd.
Move the assignment to state->bs up right after bdrv_drained_begin, so
that we can use it in the clean callback. The abort callback will still
check bs->job and state->job, so it's OK.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
