diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-03-19 18:07:45 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-04-05 14:54:40 +0200 |
commit | 3d46a75aa5031788cb283ab4429acca23cf1cf92 (patch) | |
tree | 4c2f7687c42509dc8d022f97bb25e6acb5588321 /bswap.h | |
parent | 1fc86bf963a0617bc9eabfa6c14dbca76cd57976 (diff) |
vdi: basic conversion to coroutines
Even a basic conversion changing the bdrv_aio_readv/bdrv_aio_writev calls
to bdrv_co_readv/bdrv_co_writev, and callbacks to goto statements can
eliminate a lot of code. This is because error handling is simplified
and indirections through bottom halves can go away.
After this patch, I/O to the underlying file already happens via
coroutines, but the code still looks a lot like if asynchronous I/O was
being used.
Acked-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'bswap.h')
0 files changed, 0 insertions, 0 deletions