]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: switch bdrv_read()/bdrv_write() to coroutines
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Thu, 13 Oct 2011 12:08:22 +0000 (13:08 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 13 Oct 2011 13:02:53 +0000 (15:02 +0200)
commit1c9805a398cc1125b4defa6367172c8c2c0bca9f
tree9c1c4be25e12bfbeaf673f6d9e2378dbd540bbcf
parentc5fbe57111ef59c315a71cd80e8b0af59e36ff21
block: switch bdrv_read()/bdrv_write() to coroutines

The bdrv_read()/bdrv_write() functions call .bdrv_read()/.bdrv_write().
They should go through bdrv_co_do_readv() and bdrv_co_do_writev()
instead in order to unify request processing code across sync, aio, and
coroutine interfaces.  This is also an important step towards removing
BlockDriverState .bdrv_read()/.bdrv_write() in the future.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c