diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2018-04-04 13:26:16 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2018-06-18 15:03:25 +0200 |
| commit | 6d0252f2f9cb49925deb1c41101462c9481dfc90 (patch) | |
| tree | c0fba8114304c15c1b3af817c156836c2946495e /scripts/modules/module_block.py | |
| parent | c13ad59f012cbbccb866a10477458e69bc868dbb (diff) | |
| download | focaccia-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