On 4/13/22 00:05, Eric Blake wrote:
+ s->requests[ind2].reply_possible = nbd_reply_is_structured(&s->reply);
If the reply is simple (not structured), then we expect no further
replies, so this sets things to false. But if the reply is
structured, the answer depends on NBD_REPLY_FLAG_DONE, as in:
s->requests[ind2].reply_possible =
nbd_reply_is_structured(&s->reply) &&
(s->reply.structured.flags & NBD_REPLY_FLAG_DONE);
Thinking more about it the field is unnecessary, we can just check
.coroutine in the same fashion.
Paolo