]> git.proxmox.com Git - mirror_qemu.git/commit
test-bdrv-drain: Test behaviour in coroutine context
authorKevin Wolf <kwolf@redhat.com>
Fri, 8 Dec 2017 17:51:16 +0000 (18:51 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Dec 2017 14:05:32 +0000 (15:05 +0100)
commit0582eb1006518881ecf93ba69c051335334a03e6
tree79453bee1d83d00b4536cbb4315101cd84747a23
parentd2a85d0f42f328d5e4c948262234b4071e9a2a8e
test-bdrv-drain: Test behaviour in coroutine context

If bdrv_do_drained_begin/end() are called in coroutine context, they
first use a BH to get out of the coroutine context. Call some existing
tests again from a coroutine to cover this code path.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/test-bdrv-drain.c