14.04.2022 20:57, Paolo Bonzini wrote:
The .reply_possible field of s->requests is never set to false.  This is
not a problem as it is only a safeguard to detect protocol errors,
but it's sloppy.  In fact, the field is actually not necessary at all,
because .coroutine is set to NULL in NBD_FOREACH_REPLY_CHUNK after
receiving the last chunk.  Thus, replace .reply_possible with .coroutine
and move the check before deciding the fate of this request.

Signed-off-by: Paolo Bonzini<pbonz...@redhat.com>

Reviewed-by: Vladimir Sementsov-Ogievskiy <vsement...@openvz.org>

--
Best regards,
Vladimir

Reply via email to