mirror of
https://git.proxmox.com/git/qemu
synced 2025-06-24 19:28:52 +00:00
block: Drain requests in bdrv_close
If an AIO request is in flight that refers to a BlockDriverState that has been closed and possibly even freed, more or less anything could happen. I have seen segfaults, -EBADF return values and qcow2 sometimes actually catches the situation in bdrv_close() and abort()s. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
aafcdcc9eb
commit
7094f12f86