diff options
author | Kevin Wolf <kwolf@redhat.com> | 2012-11-13 16:39:48 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-11-14 18:20:06 +0100 |
commit | b618f4a1c15d793c16c159059dd6f173e3e20f3e (patch) | |
tree | 781c6dd15a5d76e7b806120cf8492759b5c805a7 /hw | |
parent | b1649fae49a899a222c3ac53c5009dd6f23349e1 (diff) |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/megasas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/megasas.c b/hw/megasas.c index 291ff40403..61b6527928 100644 --- a/hw/megasas.c +++ b/hw/megasas.c @@ -1296,7 +1296,7 @@ static int megasas_dcmd_get_properties(MegasasState *s, MegasasCmd *cmd) static int megasas_cache_flush(MegasasState *s, MegasasCmd *cmd) { - qemu_aio_flush(); + bdrv_drain_all(); return MFI_STAT_OK; } |