From 48a9d8f214b6a6ab1d2f92c20be44e9e396ef6a5 Mon Sep 17 00:00:00 2001 From: Tycho Nightingale Date: Sun, 9 Nov 2014 21:08:52 +0000 Subject: [PATCH] To allow a request to be submitted from within the callback routine of a completing one increase the total by 1 but don't advertise it. Reviewed by: grehan --- usr.sbin/bhyve/block_if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bhyve/block_if.c b/usr.sbin/bhyve/block_if.c index 4986386de0b..8687e9a39d3 100644 --- a/usr.sbin/bhyve/block_if.c +++ b/usr.sbin/bhyve/block_if.c @@ -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