diff options
author | MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> | 2012-05-30 09:03:55 +0900 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-06-15 14:03:42 +0200 |
commit | e0d93a89b913818302ff075e4b9cc4a838a566bf (patch) | |
tree | 9fcdfb7ee7acaa66a08dfb7251a2f9cf46c6d4ed /block | |
parent | b11f38fcdf837c6ba1d4287b1c685eb3ae5351a8 (diff) | |
download | qemu-e0d93a89b913818302ff075e4b9cc4a838a566bf.zip qemu-e0d93a89b913818302ff075e4b9cc4a838a566bf.tar.gz qemu-e0d93a89b913818302ff075e4b9cc4a838a566bf.tar.bz2 |
sheepdog: add coroutine_fn markers to coroutine functions
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | 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; |