diff options
| author | Paolo Bonzini | 2016-10-27 12:48:50 +0200 |
|---|---|---|
| committer | Fam Zheng | 2016-10-28 15:50:18 +0200 |
| commit | bae8196d9f97916de6323e70e3e374362ee16ec4 (patch) | |
| tree | d733f20bed98d2ddaf2a66709fb81f20c9f31d2b /scripts | |
| parent | replication: interrupt failover if the main device is closed (diff) | |
| download | qemu-bae8196d9f97916de6323e70e3e374362ee16ec4.tar.gz qemu-bae8196d9f97916de6323e70e3e374362ee16ec4.tar.xz qemu-bae8196d9f97916de6323e70e3e374362ee16ec4.zip | |
blockjob: introduce .drain callback for jobs
This is required to decouple block jobs from running in an
AioContext. With multiqueue block devices, a BlockDriverState
does not really belong to a single AioContext.
The solution is to first wait until all I/O operations are
complete; then loop in the main thread for the block job to
complete entirely.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-Id: <1477565348-5458-3-git-send-email-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
