]> git.proxmox.com Git - mirror_qemu.git/commit
block/nbd: refactor nbd_recv_coroutines_wake_all()
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 2 Sep 2021 10:38:03 +0000 (13:38 +0300)
committerEric Blake <eblake@redhat.com>
Wed, 29 Sep 2021 18:46:33 +0000 (13:46 -0500)
commit04a953b232751f4074fd3365c82c82e11cc2d241
treefa00b51733cbbe3d1f6e8075450c3c38a3415073
parent3bc0bd1f4292758417738739d1594a55f283498b
block/nbd: refactor nbd_recv_coroutines_wake_all()

Split out nbd_recv_coroutine_wake_one(), as it will be used
separately.
Rename the function and add a possibility to wake only first found
sleeping coroutine.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20210902103805.25686-4-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: grammar tweak]
Signed-off-by: Eric Blake <eblake@redhat.com>
block/nbd.c