diff options
| author | Fam Zheng <famz@redhat.com> | 2015-10-23 11:08:11 +0800 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2015-10-23 18:18:24 +0200 |
| commit | 1fdd4b7be3655d39c3594bc215eb1df5ce225c7d (patch) | |
| tree | 3bc0dfa56410b2993c17b74df388f5e42c351ef3 /iohandler.c | |
| parent | da763e83012c066ebe3effbaa8e7e7c8f78b0fbf (diff) | |
| download | focaccia-qemu-1fdd4b7be3655d39c3594bc215eb1df5ce225c7d.tar.gz focaccia-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 'iohandler.c')
0 files changed, 0 insertions, 0 deletions