tests/test-bdrv-drain: bdrv_drain_all() works in coroutines now
commit6d0252f2f9cb49925deb1c41101462c9481dfc90
authorKevin Wolf <kwolf@redhat.com>
Wed, 4 Apr 2018 11:26:16 +0000 (4 13:26 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 Jun 2018 13:03:25 +0000 (18 15:03 +0200)
treec0fba8114304c15c1b3af817c156836c2946495e
parentc13ad59f012cbbccb866a10477458e69bc868dbb
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>
tests/test-bdrv-drain.c