virtiofsd: Keep track of replies
commit2f65e69a7f22da8d20c747f34f339ebb40a0634f
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 21 Jun 2018 09:38:03 +0000 (21 10:38 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:36 +0000 (23 16:41 +0000)
tree67af1a76756eee747343d8860a5b3a98123fad69
parentdf57ba919ec3edef9cc208d35685095e6e92713e
virtiofsd: Keep track of replies

Keep track of whether we sent a reply to a request; this is a bit
paranoid but it means:
  a) We should always recycle an element even if there was an error
     in the request
  b) Never try and send two replies on one queue element

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/fuse_virtio.c