diff options
author | 2011-09-19 15:25:40 +0200 | |
---|---|---|
committer | 2011-12-22 11:53:59 +0100 | |
commit | 41996e3803119541d43bfa59060024a22b803342 (patch) | |
tree | 59a003a257c875ee6479d5ed0a9ee4e35f383ccf /scripts/qapi-visit.py | |
parent | qemu-nbd: asynchronous operation (diff) | |
download | qemu-41996e3803119541d43bfa59060024a22b803342.tar.xz qemu-41996e3803119541d43bfa59060024a22b803342.zip |
qemu-nbd: throttle requests
Limiting the number of in-flight requests is implemented very simply
with a can_read callback. It does not require a semaphore, unlike the
client side in block/nbd.c, because we can throttle directly the creation
of coroutines. The client side can have a coroutine created at any time
when an I/O request is made.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi-visit.py')
0 files changed, 0 insertions, 0 deletions