[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 12/12] sheepdog: add coroutine_fn markers to corouti
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 12/12] sheepdog: add coroutine_fn markers to coroutine functions |
Date: |
Mon, 4 Jun 2012 13:13:29 +0200 |
From: MORITA Kazutaka <address@hidden>
Signed-off-by: MORITA Kazutaka <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
block/sheepdog.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/block/sheepdog.c b/block/sheepdog.c
index f46ca8f..8877f45 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -522,8 +522,8 @@ static int send_req(int sockfd, SheepdogReq *hdr, void
*data,
return ret;
}
-static int send_co_req(int sockfd, SheepdogReq *hdr, void *data,
- unsigned int *wlen)
+static coroutine_fn int send_co_req(int sockfd, SheepdogReq *hdr, void *data,
+ unsigned int *wlen)
{
int ret;
@@ -540,6 +540,7 @@ static int send_co_req(int sockfd, SheepdogReq *hdr, void
*data,
return ret;
}
+
static int do_req(int sockfd, SheepdogReq *hdr, void *data,
unsigned int *wlen, unsigned int *rlen)
{
@@ -576,8 +577,8 @@ out:
return ret;
}
-static int do_co_req(int sockfd, SheepdogReq *hdr, void *data,
- unsigned int *wlen, unsigned int *rlen)
+static coroutine_fn int do_co_req(int sockfd, SheepdogReq *hdr, void *data,
+ unsigned int *wlen, unsigned int *rlen)
{
int ret;
--
1.7.6.5
- Re: [Qemu-devel] [PATCH 02/12] qcow2: fix the byte endian convertion, (continued)
- [Qemu-devel] [PATCH 06/12] stream: move rate limiting to a separate header file, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 05/12] stream: move is_allocated_above to block.c, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 10/12] qcow2: Support for fixing refcount inconsistencies, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 08/12] qemu-img check -r for repairing images, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 09/12] qemu-img check: Print fixed clusters and recheck, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 07/12] Un-inline fdctrl_init_isa(), Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 03/12] block: implement is_allocated for raw, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 11/12] rbd: hook up cache options, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 04/12] stream: tweak usage of bdrv_co_is_allocated, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 12/12] sheepdog: add coroutine_fn markers to coroutine functions,
Kevin Wolf <=
- Re: [Qemu-devel] [PULL 00/12] Block patches, Anthony Liguori, 2012/06/06