From ea196f5fc68d3542f51681110e9ad744c989fb54 Mon Sep 17 00:00:00 2001 From: mav Date: Fri, 27 Mar 2015 08:57:38 +0000 Subject: MFC r280126: Pre-allocate one extra request per processing thread. Processing threads call callbacks before freeing requests. As result, new requests may arrive before old ones are freed. --- usr.sbin/bhyve/block_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/bhyve/block_if.c') diff --git a/usr.sbin/bhyve/block_if.c b/usr.sbin/bhyve/block_if.c index 58960ca..b8b27a6 100644 --- a/usr.sbin/bhyve/block_if.c +++ b/usr.sbin/bhyve/block_if.c @@ -54,8 +54,8 @@ __FBSDID("$FreeBSD$"); #define BLOCKIF_SIG 0xb109b109 -#define BLOCKIF_MAXREQ 64 #define BLOCKIF_NUMTHR 8 +#define BLOCKIF_MAXREQ (64 + BLOCKIF_NUMTHR) enum blockop { BOP_READ, -- cgit v1.1