svn commit: r280126 - head/usr.sbin/bhyve

Alexander Motin mav at FreeBSD.org
Sun Mar 15 22:44:54 UTC 2015


Author: mav
Date: Sun Mar 15 22:44:53 2015
New Revision: 280126
URL: https://svnweb.freebsd.org/changeset/base/280126

Log:
  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

Modified:
  head/usr.sbin/bhyve/block_if.c

Modified: head/usr.sbin/bhyve/block_if.c
==============================================================================
--- head/usr.sbin/bhyve/block_if.c	Sun Mar 15 21:57:44 2015	(r280125)
+++ head/usr.sbin/bhyve/block_if.c	Sun Mar 15 22:44:53 2015	(r280126)
@@ -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,


More information about the svn-src-all mailing list