]> git.proxmox.com Git - mirror_qemu.git/commitdiff
block/nbd-client: rename nbd_recv_coroutines_enter_all
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 4 Aug 2017 15:14:31 +0000 (18:14 +0300)
committerEric Blake <eblake@redhat.com>
Wed, 30 Aug 2017 18:00:38 +0000 (13:00 -0500)
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>
block/nbd-client.c

index 1e393cf26f5f0b9990ddc2520c767544e661a3c2..322b725ff9655fc673f2dfff0c0f1ab74d4c1cb7 100644 (file)
@@ -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;
 }