megasas: Use bdrv_drain_all instead of qemu_aio_flush
authorKevin Wolf <kwolf@redhat.com>
Tue, 13 Nov 2012 15:39:48 +0000 (16:39 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 14 Nov 2012 17:20:06 +0000 (18:20 +0100)
commitb618f4a1c15d793c16c159059dd6f173e3e20f3e
tree781c6dd15a5d76e7b806120cf8492759b5c805a7
parentb1649fae49a899a222c3ac53c5009dd6f23349e1
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>
hw/megasas.c