]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: Use bdrv_co_* instead of synchronous versions in coroutines
authorKevin Wolf <kwolf@redhat.com>
Fri, 15 Jul 2011 14:05:00 +0000 (16:05 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 4 Aug 2011 09:27:15 +0000 (11:27 +0200)
commite7a8a7837a964e0fe327e6ef8dde02c6a53dd14a
treea0b22171e9b1464fedba391d5f0f90321eb68814
parentba1d1afdfeeb5ec6cbfd0052ab298d9b7cb7e5ba
block: Use bdrv_co_* instead of synchronous versions in coroutines

If we're already in a coroutine, there is no reason to use the synchronous
version of block layer functions when a coroutine one exists. This makes
bdrv_read/write/flush use bdrv_co_* when used inside a coroutine.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c