projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1649fa
)
megasas: Use bdrv_drain_all instead of qemu_aio_flush
author
Kevin Wolf
<kwolf@redhat.com>
Tue, 13 Nov 2012 15:39:48 +0000
(16:39 +0100)
committer
Kevin Wolf
<kwolf@redhat.com>
Wed, 14 Nov 2012 17:20:06 +0000
(18:20 +0100)
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>
hw/megasas.c
patch
|
blob
|
history
diff --git
a/hw/megasas.c
b/hw/megasas.c
index 291ff404030c540ddea8b2fc68668243684f8039..61b6527928348984c1d95b43e1bab527ae97f8d7 100644
(file)
--- 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;
}