]> git.proxmox.com Git - mirror_qemu.git/commit
nbd: allow multiple in-flight requests
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 10 Sep 2011 13:06:52 +0000 (15:06 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Dec 2011 10:53:57 +0000 (11:53 +0100)
commitecda3447d18637c48469296c4ca8823f0a5c6717
tree4b5a928624aa96d979c74bd3ca69470d32f2cea5
parentd9b09f13ca581aad92663dc90c2d57a775f3fb9c
nbd: allow multiple in-flight requests

Allow sending up to 16 requests, and drive the replies to the coroutine
that did the request.  The code is written to be exactly the same as
before this patch when MAX_NBD_REQUESTS == 1 (modulo the extra mutex
and state).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/nbd.c