summary refs log tree commit diff stats
path: root/scripts/qapi/commands.py
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2018-06-13 20:18:12 +0200
committerMax Reitz <mreitz@redhat.com>2018-06-18 17:04:52 +0200
commit12aa40822daf0ab13059b27b29a83ded43bae3bb (patch)
tree5c9bf60375dbf84d9b4fa017b8ac838e50c18822 /scripts/qapi/commands.py
parent2e1990b26e5aa1ba1a730aa6281df123bb7a71b6 (diff)
downloadfocaccia-qemu-12aa40822daf0ab13059b27b29a83ded43bae3bb.tar.gz
focaccia-qemu-12aa40822daf0ab13059b27b29a83ded43bae3bb.zip
block/mirror: Use CoQueue to wait on in-flight ops
Attach a CoQueue to each in-flight operation so if we need to wait for
any we can use it to wait instead of just blindly yielding and hoping
for some operation to wake us.

A later patch will use this infrastructure to allow requests accessing
the same area of the virtual disk to specifically wait for each other.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 20180613181823.13618-4-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'scripts/qapi/commands.py')
0 files changed, 0 insertions, 0 deletions