[PATCH v2 1/1] nbd/server: do not poll within a coroutine context

2024-04-01 Thread Zhu Yangyang via
Coroutines are not supposed to block. Instead, they should yield. Fixes: f95910f ("nbd: implement TLS support in the protocol negotiation") Signed-off-by: Zhu Yangyang --- nbd/client.c | 7 --- nbd/common.c | 19 --- nbd/nbd-internal.h | 6 +++--- nbd/server.c

Re: [PATCH v2 1/1] nbd/server: do not poll within a coroutine context

2024-04-01 Thread Eric Blake
On Mon, Apr 01, 2024 at 08:41:20PM +0800, Zhu Yangyang wrote: > Coroutines are not supposed to block. Instead, they should yield. > > Fixes: f95910f ("nbd: implement TLS support in the protocol negotiation") > Signed-off-by: Zhu Yangyang > --- > nbd/client.c | 7 --- > nbd/common.c

Re: [PATCH v2 1/1] nbd/server: do not poll within a coroutine context

2024-04-02 Thread Zhu Yangyang via
On Mon, 1 Apr 2024 11:33:09AM -0500, Eric Blake wrote: > On Mon, Apr 01, 2024 at 08:41:20PM +0800, Zhu Yangyang wrote: > > Coroutines are not supposed to block. Instead, they should yield. > > > > Fixes: f95910f ("nbd: implement TLS support in the protocol negotiation") > > Signed-off-by: Zhu Yang