mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-08 07:40:34 +00:00
megasas: Use bdrv_drain_all instead of qemu_aio_flush
Calling qemu_aio_flush() directly can hang when combined with I/O throttling. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
b1649fae49
commit
b618f4a1c1
@ -1296,7 +1296,7 @@ static int megasas_dcmd_get_properties(MegasasState *s, MegasasCmd *cmd)
|
|||||||
|
|
||||||
static int megasas_cache_flush(MegasasState *s, MegasasCmd *cmd)
|
static int megasas_cache_flush(MegasasState *s, MegasasCmd *cmd)
|
||||||
{
|
{
|
||||||
qemu_aio_flush();
|
bdrv_drain_all();
|
||||||
return MFI_STAT_OK;
|
return MFI_STAT_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user