summary refs log tree commit diff stats
path: root/scripts/modules/module_block.py
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2017-12-10 00:11:13 +0100
committerKevin Wolf <kwolf@redhat.com>2018-06-18 15:03:25 +0200
commitbb6756895459f181e2f25e877d3d7a10c297b5c8 (patch)
treeb053dbf25158a20a81743e720480164001d77006 /scripts/modules/module_block.py
parent2ef2f16781af9dee6ba6517755e9073ba5799fa2 (diff)
downloadfocaccia-qemu-bb6756895459f181e2f25e877d3d7a10c297b5c8.tar.gz
focaccia-qemu-bb6756895459f181e2f25e877d3d7a10c297b5c8.zip
test-bdrv-drain: bdrv_drain() works with cross-AioContext events
As long as nobody keeps the other I/O thread from working, there is no
reason why bdrv_drain() wouldn't work with cross-AioContext events. The
key is that the root request we're waiting for is in the AioContext
we're polling (which it always is for bdrv_drain()) so that aio_poll()
is woken up in the end.

Add a test case that shows that it works. Remove the comment in
bdrv_drain() that claims otherwise.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions