block: Move bdrv_drain_all_begin() out of coroutine context
authorKevin Wolf <kwolf@redhat.com>
Tue, 10 Apr 2018 14:07:55 +0000 (16:07 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 Jun 2018 13:03:25 +0000 (15:03 +0200)
commitc8ca33d06def97d909a8511377b82994ae4e5981
tree2be6e8de8179ebbb6c7a1bb59780880b15342244
parent4d22bbf4ef72583eefdf44db6bf9fc7683fbc4c2
block: Move bdrv_drain_all_begin() out of coroutine context

Before we can introduce a single polling loop for all nodes in
bdrv_drain_all_begin(), we must make sure to run it outside of coroutine
context like we already do for bdrv_do_drained_begin().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/io.c