vdi: merge aio_read_cb and aio_write_cb into callers
commit4de659e8eb75df995310c5e57018c5a089c8fc6f
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Mar 2012 17:07:47 +0000 (19 18:07 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Apr 2012 12:54:40 +0000 (5 14:54 +0200)
tree9a1912595cc9f785d715b1889fdb81bc512d7b6a
parent0c7bfc321b4d19c91a59f1ff7b31418e67b8681a
vdi: merge aio_read_cb and aio_write_cb into callers

Now inline the former AIO callbacks into vdi_co_readv and vdi_co_writev.
While many cleanups are possible, the code now really looks synchronous.

Acked-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vdi.c