summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-03-15 22:44:53 +0000
committermav <mav@FreeBSD.org>2015-03-15 22:44:53 +0000
commit2b87ed684fc4b9268f2232f230fcd02009853169 (patch)
tree83ab3e8c3eb9c7cd9c23a280b3e0849883f30658 /usr.sbin
parentbfd93bcccaf74ce509f194d86074954a405cf646 (diff)
downloadFreeBSD-src-2b87ed684fc4b9268f2232f230fcd02009853169.zip
FreeBSD-src-2b87ed684fc4b9268f2232f230fcd02009853169.tar.gz
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. MFC after: 2 weeks
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bhyve/block_if.c2
1 files changed, 1 insertions, 1 deletions
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,
OpenPOWER on IntegriCloud