commit | b7d5a5b8ae5425a4dee69b043b1f334237b3b06a | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | Mon Nov 14 12:44:20 2011 +0000 |
committer | Kevin Wolf <kwolf@redhat.com> | Mon Dec 05 14:51:37 2011 +0100 |
tree | 74b07e0b72f066d8eb748d121b32488d9b9b2f6d | |
parent | 376ae3f1cb5a08f53c9425bfaf90b3f70ab240f1 [diff] |
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>