commit | 7860a380ac2a9fd09a6e8f31fd9db5318fc91285 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Tue Sep 18 13:31:56 2012 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Wed Sep 19 15:26:29 2012 +0200 |
tree | 3f8850554633c9d9e0c14a8926862c31ac2cef54 | |
parent | 0ddf08db22a9ef6b122d8c4cfe5b25d2c2c51962 [diff] |
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>