]> Git Repo - qemu.git/commit
qemu-nbd: throttle requests
authorPaolo Bonzini <[email protected]>
Mon, 19 Sep 2011 13:25:40 +0000 (15:25 +0200)
committerPaolo Bonzini <[email protected]>
Thu, 22 Dec 2011 10:53:59 +0000 (11:53 +0100)
commit41996e3803119541d43bfa59060024a22b803342
tree59a003a257c875ee6479d5ed0a9ee4e35f383ccf
parent262db38871b9a2613761cc5f05c4cf697e246a68
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 <[email protected]>
nbd.c
This page took 0.025171 seconds and 4 git commands to generate.