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

Tycho Nightingale tychon at FreeBSD.org
Sun Nov 9 21:08:53 UTC 2014


Author: tychon
Date: Sun Nov  9 21:08:52 2014
New Revision: 274330
URL: https://svnweb.freebsd.org/changeset/base/274330

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

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

Modified: head/usr.sbin/bhyve/block_if.c
==============================================================================
--- head/usr.sbin/bhyve/block_if.c	Sun Nov  9 20:43:50 2014	(r274329)
+++ head/usr.sbin/bhyve/block_if.c	Sun Nov  9 21:08:52 2014	(r274330)
@@ -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


More information about the svn-src-all mailing list