mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
block: move blk_exp_close_all() to qemu_cleanup()
Move blk_exp_close_all() from bdrv_close() to qemu_cleanup(), before bdrv_drain_all_begin(). Export drivers may have coroutines yielding at some point in the block layer, so we need to shut them down before draining the block layer, as otherwise they may get stuck blk_wait_while_drained(). RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1900505 Signed-off-by: Sergio Lopez <slp@redhat.com> Message-Id: <20210201125032.44713-3-slp@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
722d8e73d6
commit
1895b977f9
4 changed files with 11 additions and 1 deletions
|
@ -314,6 +314,7 @@ int main(int argc, char *argv[])
|
|||
main_loop_wait(false);
|
||||
}
|
||||
|
||||
blk_exp_close_all();
|
||||
bdrv_drain_all_begin();
|
||||
bdrv_close_all();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue