diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-18 13:31:56 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-19 15:26:29 +0200 |
commit | 7860a380ac2a9fd09a6e8f31fd9db5318fc91285 (patch) | |
tree | 3f8850554633c9d9e0c14a8926862c31ac2cef54 /nbd.h | |
parent | 0ddf08db22a9ef6b122d8c4cfe5b25d2c2c51962 (diff) | |
download | qemu-7860a380ac2a9fd09a6e8f31fd9db5318fc91285.zip qemu-7860a380ac2a9fd09a6e8f31fd9db5318fc91285.tar.gz qemu-7860a380ac2a9fd09a6e8f31fd9db5318fc91285.tar.bz2 |
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 <pbonzini@redhat.com>
Diffstat (limited to 'nbd.h')
0 files changed, 0 insertions, 0 deletions