« Previous | Next » 

Revision 7860a380

ID7860a380ac2a9fd09a6e8f31fd9db5318fc91285

Added by Paolo Bonzini over 7 years ago

qemu-nbd: rewrite termination conditions to use a state machine

Use a simple state machine with the following states:

- RUNNING => accepting connections
- TERMINATE => main loop must call nbd_export_close/put, and not accept
connections anymore
- TERMINATING => waiting for pending requests to finish
- TERMINATED => the NBDExport has been closed

Signed-off-by: Paolo Bonzini <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences