[Libguestfs] [libnbd PATCH v2 4/5] states: Allow in-flight read while writing next command

Eric Blake eblake at redhat.com
Wed May 22 13:34:44 UTC 2019


On 5/22/19 4:24 AM, Richard W.M. Jones wrote:
> Did we think it was better that the READY state should check if there
> are commands to issue and automatically transition to
> PREPARE_FOR_WRITE if so?

Yes. In v1, I modified states-reply.c to do the check for cmds_to_issue
and bypass %.READY; but in v2, states-reply.c is untouched, and states.c
does the check for cmds_to_issue directly within %READY.  (Actually,
that's fallout from patch 2 turning READY into a full command queue,
rather than a depth 1 queue).

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20190522/64b8d734/attachment.sig>


More information about the Libguestfs mailing list