]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/nbd-client.c
coroutine-lock: add mutex argument to CoQueue APIs
[mirror_qemu.git] / block / nbd-client.c
index 10fcc9e81d93f9011fe72aef2de98b3cc80af95f..0dc12c2d671898c7a6fdc50ad55a1f1dd07658dd 100644 (file)
@@ -182,7 +182,7 @@ static void nbd_coroutine_start(NBDClientSession *s,
     /* Poor man semaphore.  The free_sema is locked when no other request
      * can be accepted, and unlocked after receiving one reply.  */
     if (s->in_flight == MAX_NBD_REQUESTS) {
-        qemu_co_queue_wait(&s->free_sema);
+        qemu_co_queue_wait(&s->free_sema, NULL);
         assert(s->in_flight < MAX_NBD_REQUESTS);
     }
     s->in_flight++;