qed: convert to .bdrv_co_is_allocated()
commitb7d5a5b8ae5425a4dee69b043b1f334237b3b06a
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 14 Nov 2011 12:44:20 +0000 (14 12:44 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Dec 2011 13:51:37 +0000 (5 14:51 +0100)
tree74b07e0b72f066d8eb748d121b32488d9b9b2f6d
parent376ae3f1cb5a08f53c9425bfaf90b3f70ab240f1
qed: convert to .bdrv_co_is_allocated()

The bdrv_qed_is_allocated() function is a synchronous wrapper around
qed_find_cluster(), which performs the cluster lookup.  In order to
convert the synchronous function to a coroutine function we yield
instead of using qemu_aio_wait().  Note that QED's cache is already safe
for parallel requests so no locking is needed.

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