summary refs log tree commit diff stats
path: root/scripts/modules/module_block.py
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2018-04-04 13:26:16 +0200
committerKevin Wolf <kwolf@redhat.com>2018-06-18 15:03:25 +0200
commit6d0252f2f9cb49925deb1c41101462c9481dfc90 (patch)
treec0fba8114304c15c1b3af817c156836c2946495e /scripts/modules/module_block.py
parentc13ad59f012cbbccb866a10477458e69bc868dbb (diff)
downloadfocaccia-qemu-6d0252f2f9cb49925deb1c41101462c9481dfc90.tar.gz
focaccia-qemu-6d0252f2f9cb49925deb1c41101462c9481dfc90.zip
tests/test-bdrv-drain: bdrv_drain_all() works in coroutines now
Since we use bdrv_do_drained_begin/end() for bdrv_drain_all_begin/end(),
coroutine context is automatically left with a BH, preventing the
deadlocks that made bdrv_drain_all*() unsafe in coroutine context. Now
that we even removed the old polling code as dead code, it's obvious
that it's compatible now.

Enable the coroutine test cases for bdrv_drain_all().

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