]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
To allow a request to be submitted from within the callback routine of
authortychon <tychon@FreeBSD.org>
Sun, 9 Nov 2014 21:08:52 +0000 (21:08 +0000)
committertychon <tychon@FreeBSD.org>
Sun, 9 Nov 2014 21:08:52 +0000 (21:08 +0000)
a completing one increase the total by 1 but don't advertise it.

Reviewed by: grehan

usr.sbin/bhyve/block_if.c

index 4986386de0b0821110e169cc77ffe9c1c7941416..8687e9a39d3d0c16fe6e94b2886a2683be9f36f8 100644 (file)
@@ -54,7 +54,7 @@ __FBSDID("$FreeBSD$");
 
 #define BLOCKIF_SIG    0xb109b109
 
-#define BLOCKIF_MAXREQ 32
+#define BLOCKIF_MAXREQ 33
 
 enum blockop {
        BOP_READ,
@@ -600,7 +600,7 @@ blockif_queuesz(struct blockif_ctxt *bc)
 {
 
        assert(bc->bc_magic == BLOCKIF_SIG);
-       return (BLOCKIF_MAXREQ);
+       return (BLOCKIF_MAXREQ - 1);
 }
 
 int