summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2017-08-04 17:14:31 +0200
committerEric Blake2017-08-30 20:00:38 +0200
commit07b1b99c78e4b9479922fbe2d05a87ef810e6b7e (patch)
treed8992a0d51877ec0342dfe8c175fec8efa9528fa
parentblock/nbd-client: get rid of ssize_t (diff)
downloadqemu-07b1b99c78e4b9479922fbe2d05a87ef810e6b7e.tar.gz
qemu-07b1b99c78e4b9479922fbe2d05a87ef810e6b7e.tar.xz
qemu-07b1b99c78e4b9479922fbe2d05a87ef810e6b7e.zip
block/nbd-client: rename nbd_recv_coroutines_enter_all
Rename nbd_recv_coroutines_enter_all to nbd_recv_coroutines_wake_all, as it most probably just adds all recv coroutines into co_queue_wakeup, rather than directly enter them. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20170804151440.320927-9-vsementsov@virtuozzo.com> [eblake: tweak commit message] Signed-off-by: Eric Blake <eblake@redhat.com>
-rw-r--r--block/nbd-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/nbd-client.c b/block/nbd-client.c
index 1e393cf26f..322b725ff9 100644
--- a/block/nbd-client.c
+++ b/block/nbd-client.c
@@ -34,7 +34,7 @@
#define HANDLE_TO_INDEX(bs, handle) ((handle) ^ ((uint64_t)(intptr_t)bs))
#define INDEX_TO_HANDLE(bs, index) ((index) ^ ((uint64_t)(intptr_t)bs))
-static void nbd_recv_coroutines_enter_all(NBDClientSession *s)
+static void nbd_recv_coroutines_wake_all(NBDClientSession *s)
{
int i;
@@ -112,7 +112,7 @@ static coroutine_fn void nbd_read_reply_entry(void *opaque)
}
s->quit = true;
- nbd_recv_coroutines_enter_all(s);
+ nbd_recv_coroutines_wake_all(s);
s->read_reply_co = NULL;
}